From afa51c0d564a510e66d89870cfa2a35b69a5a906 Mon Sep 17 00:00:00 2001 From: James Moon Date: Fri, 29 Apr 2011 12:17:06 -0700 Subject: [PATCH] CC-2211:changes to playlist not show Move redraw function into callback function when PL gets deleted from the left window --- airtime_mvc/public/js/airtime/library/spl.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index e2be8b770..fc65acf96 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -388,11 +388,12 @@ function deleteSPL() { url = '/Playlist/delete-active/format/json'; - $.post(url, noOpenPL); - - //redraw the library list - dt = $("#library_display").dataTable(); - dt.fnStandingRedraw(); + $.post(url, function(){ + noOpenPL; + //redraw the library list + dt = $("#library_display").dataTable(); + dt.fnStandingRedraw(); + }); } function openDiffSPL(json) {