propel rename done for template fields, template name input.

This commit is contained in:
Naomi 2013-07-29 17:21:46 -04:00
parent db4e025c05
commit 8eecbb18c0
17 changed files with 2607 additions and 74 deletions

View file

@ -117,9 +117,11 @@ var AIRTIME = (function(AIRTIME) {
var data = {};
var $lis, $li;
var i, len;
var templateName;
url = (isNaN(parseInt(template_id, 10))) ? createUrl : updateUrl;
templateName = $("#template_name").val();
$lis = $templateList.children();
for (i = 0, len = $lis.length; i < len; i++) {
@ -128,7 +130,7 @@ var AIRTIME = (function(AIRTIME) {
data[i] = getFieldData($li);
}
$.post(url, data, function(json) {
$.post(url, {name: templateName, fields: data}, function(json) {
var x;
});
});