! -> Note
$ -> Affected files
+# [0000229] Payment overallocation is now forbidden (addendum)
+$ /js/payalloc.js
+
12-May-2010 Janusz Dobrowolski
# [0000226] Fixed diagnostic checks for javascript cached files, improved readability
$ /admin/system_diagnostics.php
}
function blur_alloc(i) {
- var change = get_amount(i.name);
- price_format(i.name, change, user.pdec);
+ var change = Math.min(get_amount(i.name), get_amount('maxval'+i.name.substr(6), 1))
+
+ price_format(i.name, change, user.pdec);
if (i.name != 'amount' && i.name != 'charge') {
if (change<0) change = 0;
change = change-i.getAttribute('_last');