removing default button after pressing.
This commit is contained in:
parent
e6b09308a5
commit
5fbc3867f8
|
@ -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});
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue