Bugzilla – Attachment 16650 Details for
Bug 4354
Cannot edit existing issuing rules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 4354: Manage the specific case "Unlimited" value
Bug-4354-Manage-the-specific-case-Unlimited-value.patch (text/plain), 1.53 KB, created by
Jonathan Druart
on 2013-03-21 14:44:35 UTC
(
hide
)
Description:
Bug 4354: Manage the specific case "Unlimited" value
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-03-21 14:44:35 UTC
Size:
1.53 KB
patch
obsolete
>From c926adeba39eb4011ac299982a45f7093d4b5c07 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 21 Mar 2013 15:43:01 +0100 >Subject: [PATCH] Bug 4354: Manage the specific case "Unlimited" value > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >index 7a9490a..a029443 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >@@ -56,6 +56,13 @@ $(document).ready(function() { > // Remove potential previous input added > $(current_column).find("input").remove(); > $(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />"); >+ } else if ( i == 2 ) { >+ // If the value is not an integer for "Current checkouts allowed" >+ // The value is "Unlimited" (or an equivalent translated string) >+ // an it should be set to an empty string >+ if( !((parseFloat(itm) == parseInt(itm)) && !isNaN(itm)) ) { >+ $(current_column).find("input[type='text']").val(""); >+ } > } > } else { > // specific processing for the Hard due date column >-- >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 4354
:
2182
|
2932
|
2946
|
14622
|
14818
|
14819
|
14821
|
14824
|
14829
|
16199
|
16200
|
16234
|
16610
|
16611
|
16615
|
16616
|
16617
|
16618
|
16650
|
16654
|
16655
|
16656
|
16657
|
16658