Bug 7135 - in addbiblio, make save button floating to have it on always on screen

Follow-up fix corrects z-index of toolbar so that "More" menu
is not hidden behind it.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Owen Leonard 2011-12-13 14:37:32 -05:00 committed by Paul Poulain
parent da916a368c
commit edd8e5767d

View file

@ -26,7 +26,6 @@
tbh.width(tbh.width()); tbh.width(tbh.width());
tbh.css({'position':'absolute'}); tbh.css({'position':'absolute'});
} }
tbh.css({'z-index':1000});
if(options.enabled){ if(options.enabled){
$(window).scroll(function(){ $(window).scroll(function(){
@ -48,7 +47,8 @@
if(fixMe){ if(fixMe){
var cssObj = { var cssObj = {
'position' : 'fixed', 'position' : 'fixed',
'top' : '0px' 'top' : '0px',
'z-index' : '1000'
} }
tbh.css(cssObj); tbh.css(cssObj);
tbh.addClass("floating"); tbh.addClass("floating");
@ -56,7 +56,8 @@
if(repositionMe){ if(repositionMe){
var cssObj = { var cssObj = {
'position' : 'absolute', 'position' : 'absolute',
'top' : originalOffset 'top' : originalOffset,
'z-index' : '1'
} }
tbh.css(cssObj); tbh.css(cssObj);
tbh.removeClass("floating"); tbh.removeClass("floating");