Revision 28c2764b
Von Sven Schöling vor mehr als 15 Jahren hinzugefügt
js/common.js | ||
---|---|---|
6 | 6 |
function setupPoints(numberformat, wrongFormat) { |
7 | 7 |
decpoint = numberformat.substring((numberformat.substring(1, 2).match(/\.|\,/) ? 5 : 4), (numberformat.substring(1, 2).match(/\.|\,/) ? 6 : 5)); |
8 | 8 |
if (numberformat.substring(1, 2).match(/\.|\,/)) { |
9 |
thpoint = numberformat.substring(1, 2);
|
|
9 |
thpoint = numberformat.substring(1, 2); |
|
10 | 10 |
} |
11 | 11 |
else { |
12 | 12 |
thpoint = null; |
13 | 13 |
} |
14 |
wrongNumberFormat = wrongFormat + " ( " + numberformat + " ) ";
|
|
14 |
wrongNumberFormat = wrongFormat + " ( " + numberformat + " ) "; |
|
15 | 15 |
} |
16 | 16 |
|
17 | 17 |
function setupDateFormat(setDateFormat, setWrongDateFormat) { |
... | ... | |
61 | 61 |
} |
62 | 62 |
if(decnumbers.length == 2) { |
63 | 63 |
if(decnumbers[1].length > 2) { |
64 |
return show_alert_and_focus(input_name, wrongNumberFormat);
|
|
64 |
/* return show_alert_and_focus(input_name, wrongNumberFormat); */
|
|
65 | 65 |
} |
66 | 66 |
} |
67 | 67 |
else { |
... | ... | |
88 | 88 |
} |
89 | 89 |
} |
90 | 90 |
else { |
91 |
if (dateFormat.lastIndexOf("y") == 3 && !matching.test(input_name.value)) {
|
|
91 |
if (dateFormat.lastIndexOf("y") == 3 && !matching.test(input_name.value)) { |
|
92 | 92 |
return show_alert_and_focus(input_name, wrongDateFormat); |
93 | 93 |
} |
94 | 94 |
} |
... | ... | |
127 | 127 |
input_name.focus(); |
128 | 128 |
return false; |
129 | 129 |
} |
130 |
|
|
130 |
|
|
131 | 131 |
function get_input_value(input_name) { |
132 | 132 |
var the_input = document.getElementsByName(input_name); |
133 | 133 |
if (the_input && the_input[0]) |
... | ... | |
135 | 135 |
return ''; |
136 | 136 |
} |
137 | 137 |
|
138 |
a_onfocus_functions["focus_listener"] = (function (event) {
|
|
138 |
a_onfocus_functions["focus_listener"] = (function (event) { |
|
139 | 139 |
if (focussable(event.target)) window.focused_element = event.target; |
140 | 140 |
}); |
141 | 141 |
|
... | ... | |
172 | 172 |
if (e.addEventListener) e.addEventListener(type, fn, c) |
173 | 173 |
else if (e.attachEvent) e.attachEvent('on' + type, fn) |
174 | 174 |
else e['on' + type] = fn; |
175 |
}
|
|
175 |
} |
|
176 | 176 |
|
177 | 177 |
function do_load_events() { |
178 | 178 |
for (var name in window.a_onload_functions) add_event(window, "load", window.a_onload_functions[name], false); |
Auch abrufbar als: Unified diff
Aufträge/Rechnungen dürfen Preise mit mehr als 2 Nachkommastellen haben.
Fix für Bug 998