Front end tweaks and fixes

This commit is contained in:
Duncan Sommerville 2015-09-02 12:45:37 -04:00
parent 9d373791c0
commit 0722225211
3 changed files with 11 additions and 3 deletions

View File

@ -150,6 +150,9 @@ div.btn > span {
#library_empty_image {
opacity: .3;
width: 16px;
height: 20px;
top: -20px;
margin-top: -2px;
padding-right: 2px; /* For the webstream icon */

View File

@ -77,6 +77,7 @@ var AIRTIME = (function(AIRTIME) {
cb.append("<input id='super-checkbox' type='checkbox'>");
}
var libEmpty = $('#library_empty');
if (emptyRow.length > 0) {
emptyRow.hide();
var mediaType = parseInt($('.media_type_selector.selected').attr('data-selection-id')),
@ -94,11 +95,11 @@ var AIRTIME = (function(AIRTIME) {
+ "<br/>" + $.i18n._(opts.subtext)
+ "<br/><a target='_blank' href='" + opts.href + "'>" + $.i18n._("Learn about " + opts.media) + "</a>"
);
}) ;
});
$('#library_empty').show();
libEmpty.show();
} else {
$('#library_empty').hide();
libEmpty.hide();
}
if ($("#show_builder_table").is(":visible")) {

View File

@ -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
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) {