Lines 282-287
Link Here
|
282 |
<script> |
282 |
<script> |
283 |
jQuery.validator.addClassRules({ plan_entry: { pnumber: true } }); // require that input be a number in fields with the class 'plan_entry' |
283 |
jQuery.validator.addClassRules({ plan_entry: { pnumber: true } }); // require that input be a number in fields with the class 'plan_entry' |
284 |
jQuery.validator.addMethod("pnumber", $.validator.methods.number, _("Please enter a valid number.") ); |
284 |
jQuery.validator.addMethod("pnumber", $.validator.methods.number, _("Please enter a valid number.") ); |
|
|
285 |
var zero_formatted = "[% 0 | $Price on_editing => 1 %]"; |
285 |
$(document).ready(function() { |
286 |
$(document).ready(function() { |
286 |
$("#selections input").on("change",function(e){ |
287 |
$("#selections input").on("change",function(e){ |
287 |
var num = $(this).attr("id"); |
288 |
var num = $(this).attr("id"); |
Lines 313-319
Link Here
|
313 |
$(edit_row).find("input").each(function(){ |
314 |
$(edit_row).find("input").each(function(){ |
314 |
var type = $(this).attr("type"); |
315 |
var type = $(this).attr("type"); |
315 |
if (type != "button" && type != "submit" ) { |
316 |
if (type != "button" && type != "submit" ) { |
316 |
$(this).val("0.00"); |
317 |
$(this).val(zero_formatted); |
317 |
$(this).prop('disabled', false); |
318 |
$(this).prop('disabled', false); |
318 |
} |
319 |
} |
319 |
}); |
320 |
}); |
320 |
- |
|
|