Bugzilla – Attachment 50981 Details for
Bug 11089
Item edit screen should use floating toolbar like cataloging interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11089: Add floating save button to item edit screen
Bug-11089-Add-floating-save-button-to-item-edit-sc.patch (text/plain), 2.52 KB, created by
Marc Véron
on 2016-04-29 08:55:10 UTC
(
hide
)
Description:
Bug 11089: Add floating save button to item edit screen
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-04-29 08:55:10 UTC
Size:
2.52 KB
patch
obsolete
>From 18f62ad7efae1d1dc4889d11bef713aff79c9fd0 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Thu, 28 Apr 2016 23:06:44 +0000 >Subject: [PATCH] Bug 11089: Add floating save button to item edit screen >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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 > >Signed-off-by: Marc Véron <veron@veron.ch> >--- > .../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() { > </fieldset> > > [% ELSE %] >- <input type="hidden" name="tag" value="[% itemtagfield %]" /> >- <input type="hidden" name="subfield" value="[% itemtagsubfield %]" /> >- <input type="hidden" name="field_value" value="[% itemnumber %]" /> >- <input type="submit" value="Save changes" onclick="return Check(this.form)" /> >+ <fieldset class="rows" id="floating-save"> >+ <fieldset class="action"> >+ <input type="hidden" name="tag" value="[% itemtagfield %]" /> >+ <input type="hidden" name="subfield" value="[% itemtagsubfield %]" /> >+ <input type="hidden" name="field_value" value="[% itemnumber %]" /> >+ <input type="submit" value="Save changes" onclick="return Check(this.form)" /> >+ </fieldset></fieldset> > [% END %]</fieldset> > > [%# Fields for fast cataloging %] >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11089
:
50965
|
50970
| 50981