From a4fb54cd018a9413a8002b4fbeb21b689fc30c82 Mon Sep 17 00:00:00 2001 From: naomiaro Date: Thu, 13 Jan 2011 23:44:36 -0500 Subject: [PATCH] show and hide file content of scheduled items. --- .../scripts/schedule/schedule-show.phtml | 6 +++--- .../scripts/schedule/scheduled-content.phtml | 21 +++++++++---------- public/js/airtime/schedule/schedule.js | 11 +++++++++- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/application/views/scripts/schedule/schedule-show.phtml b/application/views/scripts/schedule/schedule-show.phtml index bc315759c..b854df484 100644 --- a/application/views/scripts/schedule/schedule-show.phtml +++ b/application/views/scripts/schedule/schedule-show.phtml @@ -1,5 +1,5 @@
- - - + + +
diff --git a/application/views/scripts/schedule/scheduled-content.phtml b/application/views/scripts/schedule/scheduled-content.phtml index 910a2ad65..980ab27ea 100644 --- a/application/views/scripts/schedule/scheduled-content.phtml +++ b/application/views/scripts/schedule/scheduled-content.phtml @@ -1,15 +1,12 @@ showContent) > 0) : ?> showContent as $pl) : ?> -
  • " class="ui-widget-content"> -

    -
    - - -
    -
    -
    -

    -
    +
  • "> +
    + + +
    +
  • -
  • No Playlists
  • +

    Empty

    +
    No Playlists
    diff --git a/public/js/airtime/schedule/schedule.js b/public/js/airtime/schedule/schedule.js index 5a1b8b713..f50cd6aca 100644 --- a/public/js/airtime/schedule/schedule.js +++ b/public/js/airtime/schedule/schedule.js @@ -219,11 +219,20 @@ function makeScheduleDialog(dialog, json, show) { $("#schedule_playlist_chosen") .empty() - .append(json.chosen); + .append(json.chosen) + .find("li") + .click(function(){ + $(this).find(".group_list").toggle(); + }); }); } }); + + dialog.find("#schedule_playlist_chosen li") + .click(function(){ + $(this).find(".group_list").toggle(); + }); } function openScheduleDialog(show) {