Revision 5f68c975
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
js/common.js | ||
---|---|---|
61 | 61 |
var forbidden = test_val.match(/[^\s\d\(\)\-\+\*\/\.]/g); |
62 | 62 |
if (forbidden && forbidden.length > 0 ){ |
63 | 63 |
return show_alert_and_focus(input_name, wrongNumberFormat); |
64 |
}
|
|
64 |
} |
|
65 | 65 |
|
66 |
try{
|
|
66 |
try{ |
|
67 | 67 |
eval(test_val); |
68 | 68 |
}catch(err){ |
69 | 69 |
return show_alert_and_focus(input_name, wrongNumberFormat); |
70 |
}
|
|
70 |
} |
|
71 | 71 |
|
72 | 72 |
} |
73 | 73 |
|
... | ... | |
161 | 161 |
} |
162 | 162 |
|
163 | 163 |
$(document).ready(function () { |
164 |
// initialize all jQuery UI tab elements: |
|
165 |
$(".tabwidget").each(function(idx, element) { $(element).tabs(); }); |
|
166 |
|
|
164 | 167 |
$('input').focus(function(){ |
165 | 168 |
if (focussable(this)) window.focused_element = this; |
166 | 169 |
}); |
Auch abrufbar als: Unified diff
Refactoring: DHTML-Tab-Dialog durch Variante aus jQuery-UI ersetzt