SAAS-1017: Move top nav bar to side

This commit is contained in:
drigato 2015-08-14 08:30:52 -04:00
parent 6c7a6aaad3
commit e90fe728a2
13 changed files with 267 additions and 136 deletions

View file

@ -17,9 +17,11 @@ $(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);
if ($('.usability_hint:visible')) {
if ($('.usability_hint').css('display') == "block") {
$(".wrapper").css("padding-top", USABILITY_HINT_PADDING); // Account for usability hint
}
});
/*
@ -210,4 +212,4 @@ $(document).mouseup(function (e) {
if (!mb.is(e.target) && mb.has(e.target).length === 0 && w <= 970) {
$('#nav .responsive-menu').slideUp();
}
});
});

View file

@ -480,12 +480,12 @@ function setCurrentUserPseudoPassword() {
$('#cu_passwordVerify').val("xxxxxx");
}
$(window).resize(function() {
/* If we don't do this, the menu can stay hidden after resizing */
/*$(window).resize(function() {
*//* If we don't do this, the menu can stay hidden after resizing *//*
if ($(this).width() > 970) {
$("#nav .responsive-menu").show();
}
});
});*/
$(document).ready(function() {
if ($('#master-panel').length > 0)
@ -509,7 +509,7 @@ $(document).ready(function() {
// text. This differs depending on the language setting
$('#popup-link').css('width', $('.jp-container h1').css('width'));
$('#menu-btn').click(function() {
/*$('#menu-btn').click(function() {
$('#nav .responsive-menu').slideToggle();
});
});*/
});

View file

@ -1257,6 +1257,11 @@ $(document).ready(function() {
}
});
if (location.hash === "") {
$("a[href$='#files']").parent().addClass("selected");
}
$("a[href$='"+location.hash+"']").parent().addClass("selected");
$(".media_type_selector").on("click", function() {
if (!$(this).hasClass("selected")) {
AIRTIME.library.selectNone();

View file

@ -0,0 +1,14 @@
/*$(document).ready(function() {
$(".media_type_selector").on("click", function() {
console.log("hello");
console.log(location.hash);
if (!$(this).hasClass("selected")) {
//AIRTIME.library.selectNone();
$(".media_type_selector").each(function () {
$(this).removeClass("selected");
});
$(this).addClass("selected");
oTable.fnDraw();
}
});
});*/