creating templates for validation.

This commit is contained in:
Naomi 2013-07-22 18:11:44 -04:00
parent 19ba788bae
commit 69afc715d1
24 changed files with 1552 additions and 82 deletions

View file

@ -295,6 +295,30 @@ var AIRTIME = (function(AIRTIME) {
});
$('body').on("click", ".his_item_save", function(e) {
e.preventDefault();
var $form = $(this).parents("form");
var data = $form.serializeArray();
var url = baseUrl+"Playouthistory/update-list-item/format/json";
$.post(url, data, function(json) {
//TODO put errors on form.
if (json.data !== "true") {
//makeHistoryDialog(json.dialog);
}
else {
removeHistoryDialog();
oTable.fnDraw();
}
}, "json");
});
$historyContentDiv.find("#his_submit").click(function(ev){
var fn,
oRange;