Bugzilla – Attachment 52080 Details for
Bug 16148
Revised layout and behavior of marc modification template management
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16148: Add preventDefault to avoid the scrollbar to move to the top
Bug-16148-Add-preventDefault-to-avoid-the-scrollba.patch (text/plain), 1.99 KB, created by
Jonathan Druart
on 2016-06-06 13:44:51 UTC
(
hide
)
Description:
Bug 16148: Add preventDefault to avoid the scrollbar to move to the top
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-06-06 13:44:51 UTC
Size:
1.99 KB
patch
obsolete
>From 389334d87865ed4ef24aee2645589d1057efd30c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 6 Jun 2016 14:43:37 +0100 >Subject: [PATCH] Bug 16148: Add preventDefault to avoid the scrollbar to move > to the top > >.. when click on buttons >--- > .../intranet-tmpl/prog/js/marc_modification_templates.js | 15 ++++++++++----- > 1 file changed, 10 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js b/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js >index 3c1be0b..31ea7f7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js >@@ -47,23 +47,27 @@ $(document).ready(function() { > updateAllEvery(); > }); > >- $("#new_action").on("click",function(){ >+ $("#new_action").on("click",function(e){ >+ e.preventDefault(); > cancelEditAction(); > $("#add_action").show(); > $("#action").focus(); > }); > >- $(".duplicate_template").on("click",function(){ >+ $(".duplicate_template").on("click",function(e){ >+ e.preventDefault(); > var template_id = $(this).data("template_id"); > $("#duplicate_a_template").val(template_id); > $("#duplicate_current_template").val(1); > }); > >- $('#createTemplate').on('shown', function () { >+ $('#createTemplate').on('shown', function (e) { >+ e.preventDefault(); > $("#template_name").focus(); > }); > >- $("#duplicate_a_template").on("change",function(){ >+ $("#duplicate_a_template").on("change",function(e){ >+ e.preventDefault(); > if( this.value == '' ){ > $("#duplicate_current_template").val(""); > } else { >@@ -71,7 +75,8 @@ $(document).ready(function() { > } > }); > >- $(".delete_template").on("click",function(){ >+ $(".delete_template").on("click",function(e){ >+ e.preventDefault(); > return confirmDelete(); > }); > >-- >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 16148
:
49591
|
49603
|
51575
|
51977
|
52080
|
52373
|
52382
|
52383
|
52384
|
52385
|
52484
|
52485
|
52486