removing default button after pressing.

This commit is contained in:
Naomi 2013-08-28 15:57:29 -04:00
parent e6b09308a5
commit 5fbc3867f8
1 changed files with 6 additions and 6 deletions

View File

@ -150,12 +150,12 @@ var AIRTIME = (function(AIRTIME) {
}); });
$templateDiv.on("click", "#template_set_default", function() { $templateDiv.on("click", "#template_set_default", function() {
var template_id = $(this).data("template"); var $btn = $(this),
var url = baseUrl+"Playouthistory/set-template-default/format/json"; template_id = $btn.data("template"),
url = baseUrl+"Playouthistory/set-template-default/format/json";
$.post(url, {id: template_id}, function(json) { $btn.remove();
var x; $.post(url, {id: template_id});
});
}); });
}; };