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:
parent
da916a368c
commit
edd8e5767d
1 changed files with 4 additions and 3 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue