Bug 17209

Summary: Remove use of onclick from masthead
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: OPACAssignee: Aleisha Amohia <aleisha>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, katrin.fischer, kyle, veron
Version: master   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 17209: Remove use of onclick from masthead
[SIGNED-OFF] Bug 17209: Remove use of onclick from masthead
Bug 17209: Remove use of onclick from masthead
Bug 17209: Remove use of onclick from masthead
Bug 17209: Remove use of onclick from masthead
Bug 17209: Remove use of onclick from masthead

Description Aleisha Amohia 2016-08-29 04:45:57 UTC

    
Comment 1 Aleisha Amohia 2016-08-29 04:49:52 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2016-08-29 12:52:43 UTC
Created attachment 54974 [details] [review]
[SIGNED-OFF] Bug 17209: Remove use of onclick from masthead

There are two instances which use onclick in the OPAC masthead: clearing
search history, and logging out.

To test:
Confirm that clearing search history using the 'x' in the masthead, and
logging out by clicking 'Log out' in the masthead, work the same before
and after the patch.

Sponsored-by: Catalyst IT

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Jonathan Druart 2016-09-07 10:10:26 UTC
Comment on attachment 54974 [details] [review]
[SIGNED-OFF] Bug 17209: Remove use of onclick from masthead

Review of attachment 54974 [details] [review]:
-----------------------------------------------------------------

::: koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
@@ +237,4 @@
>          }
>      });
>  
> +    $(".persona").on("click",function(){

Why don't you use the existing id node (logout) to catch it instead of adding a new class?
Comment 4 Aleisha Amohia 2016-09-16 02:21:48 UTC
Created attachment 55592 [details] [review]
Bug 17209: Remove use of onclick from masthead

There are two instances which use onclick in the OPAC masthead: clearing
search history, and logging out.

To test:
Confirm that clearing search history using the 'x' in the masthead, and
logging out by clicking 'Log out' in the masthead, work the same before
and after the patch.

Sponsored-by: Catalyst IT

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 5 Marc Véron 2016-09-16 16:07:05 UTC
Sorry, I get a merge conflict in koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
Comment 6 Aleisha Amohia 2016-12-02 02:56:20 UTC
Created attachment 57875 [details] [review]
Bug 17209: Remove use of onclick from masthead

There are two instances which use onclick in the OPAC masthead: clearing
search history, and logging out.

To test:
Confirm that clearing search history using the 'x' in the masthead, and
logging out by clicking 'Log out' in the masthead, work the same before
and after the patch.

Sponsored-by: Catalyst IT

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 7 Aleisha Amohia 2016-12-02 02:56:38 UTC
Merge conflict fixed, ready to test
Comment 8 Marc Véron 2016-12-16 09:22:10 UTC
Created attachment 58238 [details] [review]
Bug 17209: Remove use of onclick from masthead

There are two instances which use onclick in the OPAC masthead: clearing
search history, and logging out.

To test:
Confirm that clearing search history using the 'x' in the masthead, and
logging out by clicking 'Log out' in the masthead, work the same before
and after the patch.

Sponsored-by: Catalyst IT

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marc Véron <veron@veron.ch>
Comment 9 Jonathan Druart 2016-12-27 16:23:50 UTC
Created attachment 58455 [details] [review]
Bug 17209: Remove use of onclick from masthead

There are two instances which use onclick in the OPAC masthead: clearing
search history, and logging out.

To test:
Confirm that clearing search history using the 'x' in the masthead, and
logging out by clicking 'Log out' in the masthead, work the same before
and after the patch.

Sponsored-by: Catalyst IT

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Comment 10 Kyle M Hall 2016-12-28 13:47:55 UTC
Pushed to master for 17.05, thanks Aleisha!
Comment 11 Katrin Fischer 2017-01-04 21:45:16 UTC
This won't get ported back to 16.11.x as it is an enhancement.