clearing internal selected items array.

This commit is contained in:
Naomi Aro 2013-08-30 02:24:16 -04:00
parent 846c90bc8f
commit ad531f9512
1 changed files with 7 additions and 4 deletions

View File

@ -254,10 +254,9 @@ var AIRTIME = (function(AIRTIME) {
var $div = $(ui.newContent); var $div = $(ui.newContent);
$(ui.oldContent).empty(); $(ui.oldContent).empty();
createShowTable($div); createShowTable($div);
}, selectedLogItems = {};
changestart: function( event, ui ) {
} }
//changestart: function( event, ui ) {}
}); });
} }
@ -431,6 +430,7 @@ var AIRTIME = (function(AIRTIME) {
}, },
always: function() { always: function() {
inShowsTab = false; inShowsTab = false;
selectedLogItems = {};
} }
}, },
{ {
@ -443,6 +443,7 @@ var AIRTIME = (function(AIRTIME) {
}, },
always: function() { always: function() {
inShowsTab = false; inShowsTab = false;
selectedLogItems = {};
} }
}, },
{ {
@ -456,6 +457,7 @@ var AIRTIME = (function(AIRTIME) {
always: function() { always: function() {
inShowsTab = true; inShowsTab = true;
showSummaryList(); showSummaryList();
selectedLogItems = {};
} }
} }
]; ];
@ -665,7 +667,8 @@ var AIRTIME = (function(AIRTIME) {
var items = getSelectedLogItems(), var items = getSelectedLogItems(),
url = baseUrl+"playouthistory/delete-list-items"; url = baseUrl+"playouthistory/delete-list-items";
$.post(url, {ids: items, format: "json"}, function(){ $.post(url, {ids: items, format: "json"}, function() {
selectedLogItems = {};
redrawTables(); redrawTables();
}); });
}); });