Bug 12744

Summary: Set library in staff client should have 'Cancel' link
Product: Koha Reporter: Marc Véron <veron>
Component: Staff interfaceAssignee: Marc Véron <veron>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, katrin.fischer, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 12744 - Set language in staff client should have 'Cancel' link
Bug 12744 - Set language in staff client should have 'Cancel' link
Bug 12744 - Set language in staff client should have 'Cancel' link
[SIGNED-OFF] Bug 12744 - Set language in staff client should have 'Cancel' link
[PASSED QA] Bug 12744 - Set language in staff client should have 'Cancel' link

Description Marc Véron 2014-08-11 14:13:46 UTC

    
Comment 1 Marc Véron 2014-08-11 14:28:17 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2014-08-11 14:50:44 UTC
This works great for me, but I have one minor issue: The "Cancel" link should not have an empty "onclick" attribute.
Comment 3 Marc Véron 2014-08-11 15:09:00 UTC
I followed a pattern from an other place with 'Cancel'

Would the following be better?

<a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>
Comment 4 Owen Leonard 2014-08-11 15:17:52 UTC
(In reply to Marc Véron from comment #3)
> Would the following be better?
> 
> <a class="cancel" id="cancel_set_library" href="[% referer or
> '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>

Yes. If you found instances where there is an empty onclick attribute the onclick should be removed.
Comment 5 Marc Véron 2014-08-11 15:30:05 UTC Comment hidden (obsolete)
Comment 6 Marc Véron 2014-08-11 15:32:14 UTC
Mistaked with git add. New patch follows.
Comment 7 Marc Véron 2014-08-11 15:37:14 UTC Comment hidden (obsolete)
Comment 8 Owen Leonard 2014-08-12 16:35:40 UTC Comment hidden (obsolete)
Comment 9 Katrin Fischer 2014-08-16 20:32:53 UTC
Created attachment 30876 [details] [review]
[PASSED QA] Bug 12744 - Set language in staff client should have 'Cancel' link

Test plan

Without patch:
Click on Library name in head of any staff client page anc choose 'Set library'
Result: Form 'Set library' with no 'Cancel' near 'Submit' button

With patch:
Form displays 'Cancel' link.
This link closes the form and takes you back to the page where you came from.

New patch without empty "onclick" attribute.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Nice patch, no problems found.
Comment 10 Tomás Cohen Arazi 2014-08-24 16:26:09 UTC
Patch pushed to master.

Thanks Marc!