SAAS-1050 - fix track remove buttons in playlist/smart block editors

This commit is contained in:
Duncan Sommerville 2015-09-03 12:09:55 -04:00
parent 9071c8d4b6
commit 888762739e
1 changed files with 3 additions and 4 deletions

View File

@ -1007,7 +1007,7 @@ var AIRTIME = (function(AIRTIME){
});
});
$pl.unbind().on("click", "#save_button", function(event) {
$pl.find("#save_button").unbind().on("click", function(event) {
/* Smart blocks: get name, description, and criteria
* Playlists: get name, description
*/
@ -1271,7 +1271,6 @@ var AIRTIME = (function(AIRTIME){
};
mod.playlistResponse = function(json){
console.log(json);
if (json.error !== undefined ||
(json.result !== undefined && json.result != 0)) {
if (json.error) {
@ -1287,12 +1286,12 @@ var AIRTIME = (function(AIRTIME){
}
mod.enableUI();
}
};
mod.replaceForm = function(json){
$pl.find('.editor_pane_wrapper').html(json.html);
openPlaylist(json);
}
};
function playlistRequest(sUrl, oData) {