Bugzilla – Attachment 21455 Details for
Bug 10884
Circulation table: odd behavior on checkboxes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 10884: circulation table: fix odd behavior on checkboxes
SIGNED-OFF-Bug-10884-circulation-table-fix-odd-beh.patch (text/plain), 2.02 KB, created by
Owen Leonard
on 2013-09-25 16:54:07 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 10884: circulation table: fix odd behavior on checkboxes
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-09-25 16:54:07 UTC
Size:
2.02 KB
patch
obsolete
>From 383a4b993b4ce4984b169c45378c9ed874803bca Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 13 Sep 2013 16:28:39 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 10884: circulation table: fix odd behavior > on checkboxes >Content-Type: text/plain; charset="utf-8" > >Test plan: >Play with renew, check in and export checkboxes. >The expected behavior is: the renew and check in cb should work as radio >button, without affecting the export cb. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../intranet-tmpl/prog/en/js/pages/circulation.js | 17 +++++------------ > 1 file changed, 5 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js b/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js >index 68c4651..cc3ae28 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js >+++ b/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js >@@ -80,14 +80,9 @@ $(document).ready(function() { > // Clicking the table cell checks the checkbox inside it > $("td").on("click",function(e){ > if(e.target.tagName.toLowerCase() == 'td'){ >- $(this).find("input:checkbox:visible").each( function() { >- if($(this).attr("checked")){ >- $(this).removeAttr("checked"); >- } else { >- $(this).attr("checked","checked"); >- radioCheckBox($(this)); >- } >- }); >+ $(this).find("input:checkbox:visible").each( function() { >+ $(this).click(); >+ }); > } > }); > }); >@@ -133,9 +128,7 @@ function validate1(date) { > > // prevent adjacent checkboxes from being checked simultaneously > function radioCheckBox(box){ >- box.parents("td").siblings().find("input:checkbox:visible").each(function(){ >- if($(this).attr("checked")){ >- $(this).removeAttr("checked"); >- } >+ box.parents("td").siblings().find("input:checkbox.radio").each(function(){ >+ $(this).removeAttr("checked"); > }); > } >-- >1.7.9.5
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 10884
:
21093
|
21455
|
21826