Bugzilla – Attachment 52937 Details for
Bug 3534
Patron quick add form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 3534 (QA Followup) Rebase and change floating save
Bug-3534-QA-Followup-Rebase-and-change-floating-sa.patch (text/plain), 3.07 KB, created by
Nick Clemens
on 2016-06-28 17:06:19 UTC
(
hide
)
Description:
Bug 3534 (QA Followup) Rebase and change floating save
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2016-06-28 17:06:19 UTC
Size:
3.07 KB
patch
obsolete
>From 69b60d3490de770b170fbd7152884513682b932d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 28 Jun 2016 12:57:00 -0400 >Subject: [PATCH] Bug 3534 (QA Followup) Rebase and change floating save > >--- > .../prog/en/modules/members/memberentrygen.tt | 30 ++++++++++++++-------- > 1 file changed, 20 insertions(+), 10 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 39ac47e..27d4b84 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -62,7 +62,7 @@ $(document).ready(function() { > $(".toggler").toggle(); > }); > >- $(".save_quick_add").click(function(){ >+ $("#save_quick_add").click(function(){ > $("#quick_add_form").validate(); > if( $("#quick_add_form").valid()){ > $('.toggle_quick_add').click(); >@@ -1092,19 +1092,16 @@ $(document).ready(function() { > > [% IF quickadd && opadd && !check_member %] > <form id="quick_add_form" class="toggler"> >+ <div id="qa_toolbar" class="btn-toolbar"> >+ <button class="btn btn-small" id="save_quick_add" name="save"><i class="fa fa-save"></i> Save</button> >+ <a class="btn btn-small" href="/cgi-bin/koha/members/member.pl"> >+ <i class="fa fa-times"></i> Cancel >+ </a> >+ </div> > <fieldset class="rows quick_add"><legend>Quick add</legend> > <ol id="quick_add_list"> > </ol> > </fieldset> >- <fieldset class="rows" id="qa-save"> >- <fieldset class="action"> >- <button type="button" class="save_quick_add" name="QA-Save"> >- <i class="fa fa-save"></i> Save >- </button> >- <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a> >- </fieldset> >- </fieldset> >- > </form> > <script> > $(document).ready(function () { >@@ -1130,6 +1127,19 @@ $(document).ready(function() { > $("#memberentry_guarantor").clone().appendTo("#quick_add_list").css("margin",0); > } > $("#quick_add_form").show(); >+ var qa_original_offset = $("#qa_toolbar").position().top; >+ var qa_additional_height = $("#qa_filters").height(); >+ $('#qa_toolbar').fixFloat({ 'originalOffset': qa_original_offset - qa_additional_height }); >+ $("#filteraction_on").on("click", function(){ >+ $(window).off('scroll'); >+ $("#qa_toolbar").css({ top: qa_original_offset }); >+ $('#qa_toolbar').fixFloat({ 'originalOffset': qa_original_offset }); >+ }); >+ $("#filteraction_off").on("click", function(){ >+ $(window).off('scroll'); >+ $("#qa_toolbar").css({ top: qa_original_offset - qa_additional_height}); >+ $('#qa_toolbar').fixFloat({ 'originalOffset': qa_original_offset - qa_additional_height }); >+ }) > }); > </script> > [% END %] >-- >2.1.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 3534
:
1396
|
50090
|
50091
|
50092
|
50093
|
50362
|
50410
|
50413
|
50414
|
50665
|
50666
|
50729
|
51382
|
51389
|
51445
|
51446
|
51960
|
51961
|
52192
|
52584
|
52585
|
52586
|
52934
|
52935
|
52936
|
52937
|
53109
|
53152
|
53171
|
53172
|
53173
|
53174
|
53175
|
84851