[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/members p... [dev_week]
From: |
Kyle Hall |
Subject: |
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/members p... [dev_week] |
Date: |
Tue, 05 Feb 2008 13:40:45 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Kyle Hall <kylemhall> 08/02/05 13:40:45
Modified files:
koha-tmpl/intranet-tmpl/ccfls/en/members: pay.tmpl
Log message:
Added regex check to pay by amount
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/ccfls/en/members/pay.tmpl?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.1.2.11&r2=1.1.2.1.2.12
Patches:
Index: pay.tmpl
===================================================================
RCS file:
/sources/koha/koha/koha-tmpl/intranet-tmpl/ccfls/en/members/Attic/pay.tmpl,v
retrieving revision 1.1.2.1.2.11
retrieving revision 1.1.2.1.2.12
diff -u -b -r1.1.2.1.2.11 -r1.1.2.1.2.12
--- pay.tmpl 2 Nov 2007 13:13:17 -0000 1.1.2.1.2.11
+++ pay.tmpl 5 Feb 2008 13:40:45 -0000 1.1.2.1.2.12
@@ -85,7 +85,7 @@
<tr>
</table>
</div>
- <input type="submit" name="submit" value="Make Partial Payment"
class="submit" />
+ <input type="submit" name="submit" value="Make Partial Payment"
class="submit"/>
</form>
</div>
@@ -94,6 +94,13 @@
function checkField(){
var payByAmountTotal = document.getElementById("payByAmountTotal");
+
+ var regExp = /^\d+(\.\d{2})?$/;
+ if ( ! regExp.test( payByAmountTotal.value ) ) {
+ alert("Invalid Amount: " + payByAmountTotal.value );
+ return false;
+ }
+
if ( payByAmountTotal.value > <!-- TMPL_VAR name="total" --> ) {
if ( confirm("You are trying to make a payment larger then the
total amount due. Are you sure you want to do this?") ) {
return true;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/members p... [dev_week],
Kyle Hall <=