Layout and styling fixes for sub-menu layout pages
This commit is contained in:
parent
beb0eed1c8
commit
277a066534
6 changed files with 88 additions and 65 deletions
|
@ -1,6 +1,7 @@
|
|||
var previewWidth = 482,
|
||||
previewHeight = 110,
|
||||
USABILITY_HINT_TOP = 130;
|
||||
USABILITY_HINT_HIDDEN_TOP = 102,
|
||||
USABILITY_HINT_VISIBLE_TOP = 130;
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
@ -13,6 +14,7 @@ $(document).ready(function() {
|
|||
|
||||
//this statement tells the browser to fade out any success message after 5 seconds
|
||||
setTimeout(function(){$(".success").fadeOut("slow", function(){$(this).empty()});}, 5000);
|
||||
adjustForUsabilityHint();
|
||||
});
|
||||
|
||||
/*
|
||||
|
@ -192,13 +194,18 @@ function removeSuccessMsg() {
|
|||
$status.fadeOut("slow", function(){$status.empty()});
|
||||
}
|
||||
|
||||
function adjustForUsabilityHint() {
|
||||
var topVal = ($(".usability_hint").is(":visible") ? USABILITY_HINT_VISIBLE_TOP : USABILITY_HINT_HIDDEN_TOP);
|
||||
$("#sub-menu").css("top", topVal);
|
||||
}
|
||||
|
||||
function hideHint(h) {
|
||||
h.hide("slow").addClass("hidden");
|
||||
}
|
||||
|
||||
function showHint(h) {
|
||||
h.show("slow").removeClass("hidden");
|
||||
$(".wrapper").css("top", USABILITY_HINT_TOP); // Account for usability hint
|
||||
$(".wrapper, #sub-menu").css("top", USABILITY_HINT_VISIBLE_TOP);
|
||||
}
|
||||
|
||||
function getUsabilityHint() {
|
||||
|
|
|
@ -151,7 +151,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
};
|
||||
|
||||
mod.checkDeleteButton = function() {
|
||||
var $selected = $sbTable.find("tr."+SB_SELECTED_CLASS);
|
||||
var $selected = $("."+SB_SELECTED_CLASS);
|
||||
|
||||
var button = $("#show_builder").find(".icon-trash").parent();
|
||||
if ($selected.length !== 0) {
|
||||
|
@ -849,6 +849,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
|
||||
$tr.addClass(SB_SELECTED_CLASS);
|
||||
$tr.find(".sb-checkbox > input").prop('checked', true);
|
||||
mod.checkToolBarIcons();
|
||||
} else if (ev.ctrlKey) {
|
||||
$tr.removeClass(SB_SELECTED_CLASS);
|
||||
$tr.find(".sb-checkbox > input").prop('checked', false);
|
||||
|
@ -866,8 +867,10 @@ var AIRTIME = (function(AIRTIME){
|
|||
$previouslySelected = undefined;
|
||||
tr.removeClass(SB_SELECTED_CLASS);
|
||||
tr.find(".sb-checkbox > input").prop('checked', false);
|
||||
mod.checkToolBarIcons();
|
||||
} else {
|
||||
tr.find(".sb-checkbox > input").prop('checked', true);
|
||||
mod.checkToolBarIcons();
|
||||
}
|
||||
selectedRows = $("." + SB_SELECTED_CLASS);
|
||||
});
|
||||
|
@ -879,6 +882,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
tr.addClass(SB_SELECTED_CLASS);
|
||||
tr.find(".sb-checkbox > input").prop('checked', true);
|
||||
$previouslySelected = tr;
|
||||
mod.checkToolBarIcons();
|
||||
}
|
||||
selectedRows = $("." + SB_SELECTED_CLASS);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue