Front end tweaks and fixes
This commit is contained in:
parent
9d373791c0
commit
0722225211
|
@ -150,6 +150,9 @@ div.btn > span {
|
||||||
#library_empty_image {
|
#library_empty_image {
|
||||||
opacity: .3;
|
opacity: .3;
|
||||||
|
|
||||||
|
width: 16px;
|
||||||
|
height: 20px;
|
||||||
|
|
||||||
top: -20px;
|
top: -20px;
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
padding-right: 2px; /* For the webstream icon */
|
padding-right: 2px; /* For the webstream icon */
|
||||||
|
|
|
@ -77,6 +77,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
cb.append("<input id='super-checkbox' type='checkbox'>");
|
cb.append("<input id='super-checkbox' type='checkbox'>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var libEmpty = $('#library_empty');
|
||||||
if (emptyRow.length > 0) {
|
if (emptyRow.length > 0) {
|
||||||
emptyRow.hide();
|
emptyRow.hide();
|
||||||
var mediaType = parseInt($('.media_type_selector.selected').attr('data-selection-id')),
|
var mediaType = parseInt($('.media_type_selector.selected').attr('data-selection-id')),
|
||||||
|
@ -94,11 +95,11 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
+ "<br/>" + $.i18n._(opts.subtext)
|
+ "<br/>" + $.i18n._(opts.subtext)
|
||||||
+ "<br/><a target='_blank' href='" + opts.href + "'>" + $.i18n._("Learn about " + opts.media) + "</a>"
|
+ "<br/><a target='_blank' href='" + opts.href + "'>" + $.i18n._("Learn about " + opts.media) + "</a>"
|
||||||
);
|
);
|
||||||
}) ;
|
});
|
||||||
|
|
||||||
$('#library_empty').show();
|
libEmpty.show();
|
||||||
} else {
|
} else {
|
||||||
$('#library_empty').hide();
|
libEmpty.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($("#show_builder_table").is(":visible")) {
|
if ($("#show_builder_table").is(":visible")) {
|
||||||
|
|
|
@ -569,6 +569,10 @@ var AIRTIME = (function(AIRTIME){
|
||||||
if (pane.get(0) == curr.get(0)) { // Closing the current tab, otherwise we don't need to switch tabs
|
if (pane.get(0) == curr.get(0)) { // Closing the current tab, otherwise we don't need to switch tabs
|
||||||
AIRTIME.showbuilder.switchTab(toPane, toTab);
|
AIRTIME.showbuilder.switchTab(toPane, toTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we close a tab that was causing tabs to wrap to the next row, we need to resize to change the
|
||||||
|
// margin for the tab nav
|
||||||
|
AIRTIME.playlist.onResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
mod.closeTab = function(id) {
|
mod.closeTab = function(id) {
|
||||||
|
|
Loading…
Reference in New Issue