diff --git a/airtime_mvc/application/views/scripts/library/library.phtml b/airtime_mvc/application/views/scripts/library/library.phtml index d35eb7fa6..0b60020c5 100644 --- a/airtime_mvc/application/views/scripts/library/library.phtml +++ b/airtime_mvc/application/views/scripts/library/library.phtml @@ -1,4 +1,7 @@ - +
+ Advanced Search Options + +
\ No newline at end of file diff --git a/airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml b/airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml index 3923cf182..42daa30da 100644 --- a/airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml +++ b/airtime_mvc/application/views/scripts/showbuilder/builderDialog.phtml @@ -1,7 +1,7 @@
- +
diff --git a/airtime_mvc/public/css/playlist_builder.css b/airtime_mvc/public/css/playlist_builder.css index 4614a3da1..2f99399aa 100644 --- a/airtime_mvc/public/css/playlist_builder.css +++ b/airtime_mvc/public/css/playlist_builder.css @@ -84,15 +84,27 @@ text-align:right; } -.spl_block_expand { +.spl_block_expand, .spl_block_expand.close { float:right; font-size: 9px; height: 15px; - right: 35px; - width: 100px; + /*right: 35px;*/ + width: 120px; margin-top:2px; cursor:pointer; -} + color:#fff; + font-weight: normal; + text-shadow:none; + opacity:1; + } + .spl_block_expand:hover, .spl_block_expand.close:hover { + color:#FF611F; + text-shadow:none; + opacity:1; + } + .spl_block_expand .ui-icon { + float:left; + } .spl_artist { font-size:12px; @@ -495,11 +507,21 @@ li.spl_empty { float: none; margin-bottom: 4px; width: 100%; + font-size: 13px; } - .smart-block-info > li span { + .smart-block-info > li span.block-item-time { text-align: right; float: right; color: #D5D5D5; font-size: 12px; } + .smart-block-info > li span.block-item-title { + font-weight: bold; + display: inline-block; + padding-right: 6px; + } + .smart-block-info > li span.block-item-author { + font-weight: normal; + display: inline-block; + } diff --git a/airtime_mvc/public/js/airtime/library/library.js b/airtime_mvc/public/js/airtime/library/library.js index 8f9a3c33f..b430c40e9 100644 --- a/airtime_mvc/public/js/airtime/library/library.js +++ b/airtime_mvc/public/js/airtime/library/library.js @@ -381,11 +381,17 @@ var AIRTIME = (function(AIRTIME) { label = " (Hz)"; } - if (ele.bVisible) { - advanceSearchDiv.append("
"+ele.sTitle+label+" :
"); - } else { - advanceSearchDiv.append(""); + var inputClass = 'filter_column filter_number_text'; + if (criteriaTypes[ele.mDataProp] != "s") { + inputClass = 'filterColumn filter_number_range'; } + + if (ele.bVisible) { + advanceSearchDiv.append("
"); + } else { + advanceSearchDiv.append(""); + } + if (criteriaTypes[ele.mDataProp] == "s") { var obj = { sSelector: "#"+ele.mDataProp } } else { @@ -650,6 +656,17 @@ var AIRTIME = (function(AIRTIME) { setColumnFilter(oTable); oTable.fnSetFilteringDelay(350); + + $libContent.on("click", "legend", function(){ + var $fs = $(this).parents("fieldset"); + + if ($fs.hasClass("closed")) { + $fs.removeClass("closed"); + } + else { + $fs.addClass("closed"); + } + }); $libContent.find(".dataTables_scrolling").css("max-height", tableHeight); diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index 942bfbf0d..47484c2ce 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -330,28 +330,6 @@ var AIRTIME = (function(AIRTIME){ $lib = $("#library_content"), $sbTable = $sbContent.find('table'); - /* - * Icon hover states in the toolbar. - */ - $sbContent.on("mouseenter", "#timeline-select .dropdown-toggle", function(ev) { - $el = $(this); - - if (!$el.hasClass("ui-state-disabled")) { - $el.addClass("ui-state-hover"); - $("#timeline-select .caret").contextMenu(true); - } - else { - $("#timeline-select .caret").contextMenu(false); - } - }); - $sbContent.on("mouseleave", ".fg-toolbar ul li", function(ev) { - $el = $(this); - - if (!$el.hasClass("ui-state-disabled")) { - $el.removeClass("ui-state-hover"); - } - }); - oSchedTable = $sbTable.dataTable( { "aoColumns": [ /* checkbox */ {"mDataProp": "allowed", "sTitle": "", "sWidth": "15px", "sClass": "sb-checkbox"}, @@ -1090,6 +1068,29 @@ var AIRTIME = (function(AIRTIME){ return false; }); + /* + * Icon hover states in the toolbar. + */ + $sbContent.on("mouseenter", ".btn-group #timeline-select", function(ev) { + $el = $(this).parent(), + $ch = $el.children('#timeline-select'); + + if ($el.hasClass("ui-state-disabled")) { + $ch.attr("disabled", "disabled"); + } + else { + $ch.removeAttr("disabled"); + } + }); + $sbContent.on("mouseleave", ".btn-group #timeline-select", function(ev) { + $el = $(this).parent(); + + if (!$el.hasClass("ui-state-disabled")) { + $el.removeClass("ui-state-hover"); + } + }); + + //begin context menu initialization. $.contextMenu({ selector: '.sb-content table tbody tr:not(.sb-empty, .sb-footer, .sb-header, .sb-record) td:not(.sb-checkbox, .sb-image)',