Bugzilla – Attachment 2680 Details for
Bug 5281
"Check in" then "Renew" checkboxes checked in the same time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for bug 5281
fix4bug5281.patch (text/plain), 4.61 KB, created by
Brice Sanchez
on 2010-10-07 15:18:35 UTC
(
hide
)
Description:
Fix for bug 5281
Filename:
MIME Type:
Creator:
Brice Sanchez
Created:
2010-10-07 15:18:35 UTC
Size:
4.61 KB
patch
obsolete
>diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl >index 980d195..7872db9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl >@@ -94,30 +94,19 @@ var allcheckboxes = $(".checkboxed"); > $(this).hide(); > $("#add_message_form").show(); > }); >+ >+ >+ // uncheck_sibling >+ $('.itemsCheckbox').click(function(){ >+ $(this).closest('tr').find('.barcodesCheckbox').attr('checked', false); >+ }); >+ >+ $('.barcodesCheckbox').click(function(){ >+ $(this).closest('tr').find('.itemsCheckbox').attr('checked', false); >+ }); >+ > }); >-function uncheck_sibling(me){ >-nodename=me.getAttribute("name"); >-if (nodename =="barcodes[]"){ >- var Node=me.parentNode.previousSibling; >- while (Node.nodeName!="TD"){Node=Node.previousSibling} >- var Nodes=Node.childNodes; >- for (var i=0;i<Nodes.length;i++){ >- if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){ >- Nodes[i].checked=false; >- } >- } >- >-}else { >- var Node=me.parentNode.nextSibling; >- while (Node.nodeName!="TD"){Node=Node.nextSibling} >- var Nodes=Node.childNodes; >- for (var i=0;i<Nodes.length;i++){ >- if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){ >- Nodes[i].checked=false; >- } >- } >-} >-} >+ > function validate1(date) { > var today = new Date(); > if ( date < today ) { >@@ -758,19 +747,19 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span> > <!-- TMPL_ELSE --> > <td><span style="padding: 0 1em;"><!-- TMPL_IF NAME="renewals" --><!-- TMPL_VAR NAME="renewals" --><!-- TMPL_ELSE -->0<!-- /TMPL_IF --></span> > <!-- TMPL_IF NAME="can_renew" --> >- <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" /> >+ <input type="checkbox" class="itemsCheckbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" /> > <!-- TMPL_IF NAME="od" --> >- <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" /> >+ <input type="checkbox" class="itemsCheckbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" /> > <!-- TMPL_ELSE --> >- <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" /> >+ <input type="checkbox" class="itemsCheckbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" /> > <!-- /TMPL_IF --> > <!-- TMPL_ELSE --> > <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none"> >- <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" /> >+ <input type="checkbox" class="itemsCheckbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" /> > <!-- TMPL_IF NAME="od" --> >- <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" /> >+ <input type="checkbox" class="itemsCheckbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" /> > <!-- TMPL_ELSE --> >- <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" /> >+ <input type="checkbox" class="itemsCheckbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" /> > <!-- /TMPL_IF --> > </span> > <span class="renewals-disabled"> >@@ -790,8 +779,8 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span> > <!-- TMPL_IF NAME="return_failed" --> > <td class="problem">Checkin Failed</td> > <!--TMPL_ELSE--> >- <td><input type="checkbox" name="barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" onclick="uncheck_sibling(this);" /> >- <input type="checkbox" name="all_barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" checked="checked" style="display: none;" /> >+ <td><input type="checkbox" class="barcodesCheckbox" name="barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" /> >+ <input type="checkbox" class="barcodesCheckbox" name="all_barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" checked="checked" style="display: none;" /> > </td> > <!-- /TMPL_IF --> > </tr>
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 5281
:
2667
| 2680 |
2690