From c496546ec07a9c431bdd67422421df656b8d11aa Mon Sep 17 00:00:00 2001 From: naomiaro Date: Fri, 4 Feb 2011 00:40:36 -0500 Subject: [PATCH] bug fix for new html in schedule dialog. --- public/js/airtime/schedule/schedule.js | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/public/js/airtime/schedule/schedule.js b/public/js/airtime/schedule/schedule.js index faa9f7b29..17054f412 100644 --- a/public/js/airtime/schedule/schedule.js +++ b/public/js/airtime/schedule/schedule.js @@ -45,14 +45,14 @@ function setScheduleDialogEvents(dialog) { } }); - dialog.find(".ui-icon-close").parent().click(function(){ + dialog.find(".ui-icon-close").click(function(){ var groupId, url; groupId = $(this).parent().parent().attr("id").split("_").pop(); - url = '/Schedule/remove-group/format/json'; + url = '/Schedule/remove-group'; $.post(url, - {groupId: groupId}, + {format: "json", groupId: groupId}, function(json){ var dialog = $("#schedule_playlist_dialog"); @@ -83,25 +83,6 @@ function dtDrawCallback() { } function makeScheduleDialog(dialog, json) { - - dialog.find("#schedule_playlist_search").keyup(function(){ - var url, string; - - url = "/Schedule/find-playlists/format/html"; - string = $(this).val(); - - $.post(url, {search: string}, function(html){ - - $("#schedule_playlist_choice") - .empty() - .append(html) - .find('li') - .draggable({ - helper: 'clone' - }); - - }); - }); dialog.find('#schedule_playlists').dataTable( { "bProcessing": true,