Bugzilla – Attachment 9692 Details for
Bug 8119
Show hint when disabling active currency checkbox
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8119 - Followup: Show hint when disabling active currency checkbox
0001-Bug-8119-Followup-Show-hint-when-disabling-active-cu.patch (text/plain), 1.78 KB, created by
Jonathan Druart
on 2012-05-22 09:38:16 UTC
(
hide
)
Description:
Bug 8119 - Followup: Show hint when disabling active currency checkbox
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-05-22 09:38:16 UTC
Size:
1.78 KB
patch
obsolete
>From b0d527275c62961a2432d156df579043e05d50ad Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 22 May 2012 11:31:32 +0200 >Subject: [PATCH 1/1] Bug 8119 - Followup Show hint when disabling active > currency checkbox > >Display the message on editing >--- > .../prog/en/modules/admin/currency.tt | 21 ++++++++++++------- > 1 files changed, 13 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >index e235838..1d327be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >@@ -34,20 +34,25 @@ > } > } > >+ function check_currency(val) { >+ if ( val == 1.0 ) { >+ $("#active").removeAttr('disabled'); >+ $("#hint").html(""); >+ } else { >+ $("#active").removeAttr('checked'); >+ $("#active").attr('disabled','disabled'); >+ $("#hint").html(_("The active currency must have a rate of 1.0")); >+ } >+ } >+ > $(document).ready(function() { > new YAHOO.widget.Button("newcurrency"); > > // prevents users to check active with a currency != 1 > $("#rate").keyup(function() { >- if ( $(this).val() == 1.0 ) { >- $("#active").removeAttr('disabled'); >- $("#hint").html(""); >- } else { >- $("#active").removeAttr('checked'); >- $("#active").attr('disabled','disabled'); >- $("#hint").html(_("The active currency must have a rate of 1.0")); >- } >+ check_currency( $(this).val() ); > }); >+ check_currency( $("#rate").val() ); > }); > //]]> > </script> >-- >1.7.7.3 >
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 8119
:
9638
|
9657
|
9692
|
9927
|
9928