From 7b52f0b40c815f95a519ee51358d6036bf504d34 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Thu, 28 Apr 2016 23:06:44 +0000 Subject: [PATCH] Bug 11089: Add floating save button to item edit screen It was agreed in Bug 11088 that the floating save panel is used when there are no other controls which need to be displayed in a toolbar. Thought it could be applied here. To test: 1) Apply 11088 first 2) Apply this patch 3) Go to edit an individual item 4) Confirm that Save panel floats in bottom right corner of page and stays in this position when browser is made to be narrower or wider 5) Test with 2 active languages to ensure Save panel changes position to not be covered by language chooser Sponsored-by: Catalyst IT --- .../intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 0b979c3..66ee626 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -19,6 +19,8 @@ $(document).ready(function(){ + $('#floating-save').css( { bottom: parseInt( $('#floating-save').css('bottom') ) + $('#changelanguage').height() + 'px' } ); + // Remove the onclick event defined in browser.js, // otherwise the deletion confirmation will not work correctly $('a[href*="biblionumber="]').off('click'); @@ -321,10 +323,13 @@ function confirm_deletion() { [% ELSE %] - - - - +
+
+ + + + +
[% END %] [%# Fields for fast cataloging %] -- 1.7.10.4