diff --git a/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js b/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js index bfbe094ac..305bb41ca 100644 --- a/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js +++ b/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js @@ -17,6 +17,7 @@ function setSmartPlaylistEvents() { $(this).hide(); } appendAddButton(); + appendModAddButton(); removeButtonCheck(); }); @@ -87,6 +88,8 @@ function setSmartPlaylistEvents() { var count = list_length - curr_pos; var next = curr.next(); var item_to_hide; + var prev; + var index; //remove error message from current row, if any var error_element = curr.find('span[class="errors sp-errors"]'); @@ -94,10 +97,13 @@ function setSmartPlaylistEvents() { error_element.remove(); } - /* assign next row to current row for all rows below and including - * the row getting removed - */ - for (var i=0; i