projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PHP 7.X produces A non-numeric value encountered in \includes\date_functions.inc...
[fa-stable.git]
/
js
/
payalloc.js
diff --git
a/js/payalloc.js
b/js/payalloc.js
index a1cbc09ec3334f9c8cf548a69c42c2473f42d5c5..a711e603cb40daf97dcc8924cefb339c5714eabd 100644
(file)
--- a/
js/payalloc.js
+++ b/
js/payalloc.js
@@
-56,12
+56,20
@@
function allocate_none(doc) {
var allocations = {
'.amount': function(e) {
var allocations = {
'.amount': function(e) {
- e.onblur = function() {
- blur_alloc(this);
+ if(e.name == 'allocated_amount' || e.name == 'bank_amount')
+ {
+ e.onblur = function() {
+ var dec = this.getAttribute("dec");
+ price_format(this.name, get_amount(this.name), dec);
};
};
- e.onfocus = function() {
- focus_alloc(this);
- };
+ } else {
+ e.onblur = function() {
+ blur_alloc(this);
+ };
+ e.onfocus = function() {
+ focus_alloc(this);
+ };
+ }
}
}
}
}