diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php
index 22d8754fb..2d26d1b9d 100644
--- a/airtime_mvc/application/controllers/ScheduleController.php
+++ b/airtime_mvc/application/controllers/ScheduleController.php
@@ -111,6 +111,7 @@ class ScheduleController extends Zend_Controller_Action
$this->view->headLink()->appendStylesheet($baseUrl.'css/datatables/css/ColVis.css?'.$CC_CONFIG['airtime_version']);
$this->view->headLink()->appendStylesheet($baseUrl.'css/datatables/css/dataTables.colReorder.min.css?'.$CC_CONFIG['airtime_version']);
$this->view->headLink()->appendStylesheet($baseUrl.'css/showbuilder.css?'.$CC_CONFIG['airtime_version']);
+ $this->view->headLink()->appendStylesheet($baseUrl.'css/_showbuilder.css?'.$CC_CONFIG['airtime_version']);
//End Show builder JS/CSS requirements
$this->createShowFormAction(true);
diff --git a/airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml b/airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml
index 5ff1de07f..433fa197c 100644
--- a/airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml
+++ b/airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml
@@ -1,14 +1,37 @@
-
-
\ No newline at end of file
diff --git a/airtime_mvc/public/css/redmond/jquery-ui-1.8.8.custom.css b/airtime_mvc/public/css/redmond/jquery-ui-1.8.8.custom.css
index 8e5dfa25c..254d2d1a6 100644
--- a/airtime_mvc/public/css/redmond/jquery-ui-1.8.8.custom.css
+++ b/airtime_mvc/public/css/redmond/jquery-ui-1.8.8.custom.css
@@ -1192,10 +1192,10 @@ button.ui-button.::-moz-focus-inner {
text-align: left;
border-width: 1px 0 0 0;
background: none;
- margin: .5em 0 0 0;
margin: 0.3em -0.4em 0;
padding: 0.3em 1em 0 0.4em;
border-color: #9f9f9f;
+ box-shadow: none;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
float: right;
diff --git a/airtime_mvc/public/js/airtime/library/library.js b/airtime_mvc/public/js/airtime/library/library.js
index fd551786b..a0e6c8e0f 100644
--- a/airtime_mvc/public/js/airtime/library/library.js
+++ b/airtime_mvc/public/js/airtime/library/library.js
@@ -320,24 +320,35 @@ var AIRTIME = (function(AIRTIME) {
mod.checkToolBarIcons();
};
+ mod.selectAll = function($els) {
+ $els.each(function(i, el){
+ mod.highlightItem(el);
+ mod.addToChosen(el);
+ });
+ $previouslySelected = $els.last();
+ mod.checkToolBarIcons();
+ };
+
+ mod.deselectAll = function($els) {
+ $els.each(function(i, el){
+ mod.unHighlightItem(el);
+ mod.removeFromChosen(el);
+ });
+ $previouslySelected = undefined;
+ mod.checkToolBarIcons();
+ };
+
/*
* selects all items which the user can currently see. (behaviour taken from
* gmail)
- *
+ *
* by default the items are selected in reverse order so we need to reverse
* it back
*/
mod.selectCurrentPage = function() {
$.fn.reverse = [].reverse;
var $trs = $libTable.find("tbody").find("tr").reverse();
-
- $trs.each(function(i, el){
- mod.selectItem($(el));
- mod.checkItem($(el));
- });
-
- mod.checkToolBarIcons();
-
+ mod.selectAll($trs);
};
/*
@@ -346,26 +357,13 @@ var AIRTIME = (function(AIRTIME) {
*/
mod.deselectCurrentPage = function() {
var $trs = $libTable.find("tr");
-
- $trs.each(function(i, el){
- mod.deselectItem($(el));
- mod.uncheckItem($(el));
- });
-
- mod.checkToolBarIcons();
+ mod.selectAll($trs);
};
mod.selectNone = function() {
var $trs = $libTable.find("tr");
- $trs.each(function(i, el){
- mod.deselectItem($(el));
- mod.uncheckItem($(el));
- });
- $previouslySelected = undefined;
-
chosenItems = {};
-
- mod.checkToolBarIcons();
+ mod.deselectAll($trs);
};
mod.fnRedraw = function() {
diff --git a/airtime_mvc/public/js/airtime/schedule/schedule.js b/airtime_mvc/public/js/airtime/schedule/schedule.js
index 1b36dd9eb..a7a6aa6a3 100644
--- a/airtime_mvc/public/js/airtime/schedule/schedule.js
+++ b/airtime_mvc/public/js/airtime/schedule/schedule.js
@@ -125,20 +125,8 @@ function buildScheduleDialog (json, instance_id) {
viewport = findViewportDimensions(),
height = Math.floor(viewport.height * 0.96),
width = Math.floor(viewport.width * 0.96),
- fnServer = AIRTIME.showbuilder.fnServerData,
- //subtract padding in pixels
- widgetWidth = width - 60,
- libWidth = Math.floor(widgetWidth * 0.5),
- builderWidth = Math.floor(widgetWidth * 0.5);
-
- dialog.find("#library_content")
- .height(height - 115)
- .width(libWidth);
-
- dialog.find("#show_builder")
- .height(height - 115)
- .width(builderWidth);
-
+ fnServer = AIRTIME.showbuilder.fnServerData;
+
dialog.dialog({
autoOpen: false,
title: json.title,
@@ -171,13 +159,6 @@ function buildScheduleDialog (json, instance_id) {
AIRTIME.library.libraryInit();
AIRTIME.showbuilder.builderDataTable();
- //set max heights of datatables.
- dialog.find(".lib-content .dataTables_scrolling")
- .css("max-height", height - 90 - 200);
-
- dialog.find(".sb-content .dataTables_scrolling")
- .css("max-height", height - 90 - 65);
-
dialog.dialog('open');
}
@@ -341,7 +322,6 @@ $(document).ready(function() {
if (oItems.schedule !== undefined) {
callback = function() {
-
$.post(oItems.schedule.url, {format: "json", id: data.id}, function(json){
buildScheduleDialog(json, data.id);
});