projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rerun Feature 5388: Print Invoices (documents) list gets too long. Fixed by default...
[fa-stable.git]
/
js
/
utils.js
diff --git
a/js/utils.js
b/js/utils.js
index 478cd158e3d326ab1b8acd732144a352f239359f..08334e2fb7a225d8357150edf30aa944826acb49 100644
(file)
--- a/
js/utils.js
+++ b/
js/utils.js
@@
-179,7
+179,7
@@
JsHttpRequest._request = function(trigger, form, tout, retry) {
}
if (el.type )
if(
}
if (el.type )
if(
- (
(el.type == 'radio' || el.type == 'checkbox')
&& el.checked == false)
+ (
el.type == 'radio'
&& el.checked == false)
|| (el.type == 'submit' && (!submitObj || el.name!=submitObj.name)))
continue;
if (el.disabled && el.disabled == true)
|| (el.type == 'submit' && (!submitObj || el.name!=submitObj.name)))
continue;
if (el.disabled && el.disabled == true)
@@
-202,7
+202,11
@@
JsHttpRequest._request = function(trigger, form, tout, retry) {
q[name] = el;
else
{
q[name] = el;
else
{
- q[name] = el.value;
+ if (el.type == 'checkbox') {
+ q[name] = (el.checked == true);
+ } else {
+ q[name] = el.value;
+ }
}
}
}
}
}
}
@@
-356,5
+360,6
@@
function element_pos(e) {
}
function string_contains(haystack, needle) {
}
function string_contains(haystack, needle) {
- return haystack.indexOf(needle) > -1;
+ var words = haystack.split(' ');
+ return words.indexOf(needle) > -1;
}
}