Bugzilla – Attachment 81198 Details for
Bug 21645
Clean up library groups template
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21645: e.preventDefault on click
Bug-21645-epreventDefault-on-click.patch (text/plain), 2.20 KB, created by
Jonathan Druart
on 2018-10-25 20:21:08 UTC
(
hide
)
Description:
Bug 21645: e.preventDefault on click
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-10-25 20:21:08 UTC
Size:
2.20 KB
patch
obsolete
>From 615f64cf9e06e05579ea9a73688b555a9b1232c6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 25 Oct 2018 17:09:26 -0300 >Subject: [PATCH] Bug 21645: e.preventDefault on click > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../intranet-tmpl/prog/en/modules/admin/library_groups.tt | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt >index 81d4959f3e..bcf77af6ea 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt >@@ -237,12 +237,14 @@ > clickableNodeNames: true, > }); > >- $('.add-group').on('click', function() { >+ $('.add-group').on('click', function(e) { >+ e.preventDefault(); > var id = $(this).data('groupId'); > add_group( id ); > }); > >- $('.edit-group').on('click', function() { >+ $('.edit-group').on('click', function(e) { >+ e.preventDefault(); > var id = $(this).data('groupId'); > var parent_id = $(this).data('groupParentId'); > var title = $(this).data('groupTitle'); >@@ -253,13 +255,15 @@ > edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff ); > }); > >- $('.delete-group').on('click', function() { >+ $('.delete-group').on('click', function(e) { >+ e.preventDefault(); > var id = $(this).data('groupId'); > var title = $(this).data('groupTitle'); > delete_group( id, title ); > }); > >- $('.remove-library').on('click', function() { >+ $('.remove-library').on('click', function(e) { >+ e.preventDefault(); > var id = $(this).data('groupId'); > var library = $(this).data('groupLibrary'); > var parent_title = $(this).data('groupParentTitle'); >-- >2.11.0
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 21645
:
81069
|
81078
|
81081
|
81197
| 81198 |
81199