Bugzilla – Attachment 53174 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), 4.12 KB, created by
Jonathan Druart
on 2016-07-07 14:40:57 UTC
(
hide
)
Description:
Bug 3534 (QA Followup) Rebase and change floating save
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-07-07 14:40:57 UTC
Size:
4.12 KB
patch
obsolete
>From 8c816fb9768d64da405de0baccb8dee158a03a09 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 > >Bug 3534 - (QA Followup) Use single toolbar for regular/quickadd forms > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/en/modules/members/memberentrygen.tt | 48 +++++++++++----------- > 1 file changed, 24 insertions(+), 24 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..6b0e0ee 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -62,14 +62,19 @@ $(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(); >- $('#entryform button[name="save"]').click(); >+ $('#saverecord').click(); > } > else {return false;} > }); >+ $("#saverecord").click(function(){ >+ if( check_form_borrowers() ){ >+ $("#entryform").submit(); >+ } >+ }); > > }); > >@@ -201,6 +206,22 @@ $(document).ready(function() { > [% END %] > > >+<div id="toolbar" class="btn-toolbar"> >+[% UNLESS ( check_member ) %] >+ [% IF quickadd && opadd %] >+ <button class="btn btn-small toggler" id="save_quick_add" name="save"><i class="fa fa-save"></i> Save</button> >+ [% END %] >+ <button class="btn btn-small toggler" id="saverecord" name="save" ><i class="fa fa-save"></i> Save</button> >+ [% IF opadd %] >+ <a class="btn btn-small" href="/cgi-bin/koha/members/member.pl" class="toggler save_entryform"> >+ [% ELSE %] >+ <a class="btn btn-small" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]"> >+ [% END %] >+ <i class="fa fa-times"></i> Cancel >+ </a> >+[% END %] >+</div> >+ > [% UNLESS ( check_member ) %]<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" > > <input type="hidden" name="nodouble" value="[% nodouble %]" /> [% END %] > <!-- field always hidden in different form (1,2,3) --> >@@ -224,18 +245,6 @@ $(document).ready(function() { > [% END %] > [% END %] > [% END %] >-<div id="toolbar" class="btn-toolbar"> >-[% UNLESS ( check_member ) %] >- <button class="btn btn-small" id="saverecord" type="submit" name="save" onclick="return check_form_borrowers();"><i class="fa fa-save"></i> Save</button> >- [% IF opadd %] >- <a class="btn btn-small" href="/cgi-bin/koha/members/member.pl"> >- [% ELSE %] >- <a class="btn btn-small" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]"> >- [% END %] >- <i class="fa fa-times"></i> Cancel >- </a> >-[% END %] >-</div> > > [% IF ( step_1 ) %] > [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] >@@ -1096,19 +1105,10 @@ $(document).ready(function() { > <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 () { >- $("#entryform").hide(); >+ $("#entryform,#saverecord").hide(); > [% q_add_f = Koha.Preference('PatronQuickAddFields').split('\|') %] > var qaddfields = [[% FOREACH field IN q_add_f.unique %]"[% field %]",[% END %]]; > var skipped_fields = ["contactname","contactfirstname","relationship"]; //Guarantor form is pulled as a whole, ignore individual fields >-- >2.8.1
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