From 888762739e0f04cadb4cfa8521ffd349163d9994 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Thu, 3 Sep 2015 12:09:55 -0400 Subject: [PATCH] SAAS-1050 - fix track remove buttons in playlist/smart block editors --- airtime_mvc/public/js/airtime/library/spl.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index 22cacd1fb..282273111 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -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) {