[guadec-web] Update total while you type the arbitrary fee
- From: Pascal Terjan <pterjan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] Update total while you type the arbitrary fee
- Date: Mon, 14 Jul 2014 20:21:29 +0000 (UTC)
commit 29db0c563fe803ddbf61e7f8f2f0ffa5785e2003
Author: Pascal Terjan <pterjan gmail com>
Date: Mon Jul 14 20:21:21 2014 +0000
Update total while you type the arbitrary fee
guadec/js/calculate-total.js | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/guadec/js/calculate-total.js b/guadec/js/calculate-total.js
index 31e9d56..9260399 100644
--- a/guadec/js/calculate-total.js
+++ b/guadec/js/calculate-total.js
@@ -136,18 +136,14 @@ $(function() {
callTotalCalculate();
});
- $('#entry-arb').focusout(function(){
- $('input:radio[id=entry-fee-arb]').prop('value', $('#entry-arb').val());
- if($('input:radio[id=entry-fee-arb]').is(':checked')){
- callTotalCalculate();
- }
- });
/* To force entry of numbers in money textbox */
$('#entry-arb').on('change keyup', function() {
// Remove invalid characters
var sanitized = $(this).val().replace(/[^0-9]/g, '');
// Update value
$(this).val(sanitized);
+ $('input:radio[id=entry-fee-arb]').prop('value', sanitized);
+ callTotalCalculate();
});
//Enable Disable Accomodation and Lunch Selection
$(document).ready(function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]