Bugzilla – Attachment 50194 Details for
Bug 16238
Upgrade jQuery in staff client: use .prop() instead of .attr()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16238: QA fix: remove tab characters
Bug-16238-QA-fix-remove-tab-characters.patch (text/plain), 3.69 KB, created by
Marc Véron
on 2016-04-13 12:39:33 UTC
(
hide
)
Description:
Bug 16238: QA fix: remove tab characters
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-04-13 12:39:33 UTC
Size:
3.69 KB
patch
obsolete
>From f3b9b9cc4f79b87c31d83bd7d70454fe3cb19a69 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 13 Apr 2016 10:31:05 +0200 >Subject: [PATCH] Bug 16238: QA fix: remove tab characters >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Marc Véron <veron@veron.ch> >--- > .../prog/en/includes/messaging-preference-form.inc | 28 +++++++-------- > .../prog/en/modules/reserve/request.tt | 38 ++++++++++---------- > 2 files changed, 33 insertions(+), 33 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >index b4405b1..953b9ef 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >@@ -1,20 +1,20 @@ > [% USE Koha %] > <!-- snippet for form to set borrower and patron category messaging preferences --> > <script type="text/javascript">//<![CDATA[ >- $(document).ready(function(){ >- $(".none").click(function(){ >- if($(this).prop("checked")){ >- var rowid = $(this).attr("id"); >- newid = Number(rowid.replace("none","")) >- $("#sms"+newid).prop("checked", false); >- $("#email"+newid).prop("checked", false); >- $("#phone"+newid).prop("checked", false); >- $("#digest"+newid).prop("checked", false); >- $("#rss"+newid).prop("checked", false); >- } >- }); >- $("#info_digests").tooltip(); >- }); >+$(document).ready(function(){ >+ $(".none").click(function(){ >+ if($(this).prop("checked")){ >+ var rowid = $(this).attr("id"); >+ newid = Number(rowid.replace("none","")) >+ $("#sms"+newid).prop("checked", false); >+ $("#email"+newid).prop("checked", false); >+ $("#phone"+newid).prop("checked", false); >+ $("#digest"+newid).prop("checked", false); >+ $("#rss"+newid).prop("checked", false); >+ } >+ }); >+ $("#info_digests").tooltip(); >+}); > //]]> > </script> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index 2ae8d17..263b576 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -149,26 +149,26 @@ function checkMultiHold() { > $("input.warning").click(function() { > return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") ); > }); >- $("#requestany").click(function() { >- if(this.checked){ >- $("input[name=checkitem]").each(function() { >- $(this).prop("checked", false); >- }); >- } >- }); >- $("input[name=checkitem]").click(function() { >- onechecked = 0; >- $("input[name=checkitem]").each(function() { >- if(this.checked){ >- onechecked = 1; >- } >- }); >- if(onechecked == 1){ >+ $("#requestany").click(function() { >+ if(this.checked){ >+ $("input[name=checkitem]").each(function() { >+ $(this).prop("checked", false); >+ }); >+ } >+ }); >+ $("input[name=checkitem]").click(function() { >+ onechecked = 0; >+ $("input[name=checkitem]").each(function() { >+ if(this.checked){ >+ onechecked = 1; >+ } >+ }); >+ if(onechecked == 1){ > $("#requestany").prop("checked", false); >- } else { >- $("#requestany").prop("checked",true); >- } >- }); >+ } else { >+ $("#requestany").prop("checked",true); >+ } >+ }); > > $(".clear-date").on("click",function(e){ > e.preventDefault(); >-- >1.7.10.4
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 16238
:
50119
|
50177
|
50193
|
50194
|
50209
|
50210
|
50565
|
50566
|
50567
|
50568
|
50580
|
50581
|
50582
|
50583
|
50584
|
50734
|
50737
|
50738
|
50739
|
50740
|
50741