Test instance to clear search form entries
Since rev 2e49820602fb the entries have no more a type attribute. issue9920 review322811002
This commit is contained in:
1 parent
779fcf081c
commit
e55f429bb5
1 file changed
+6
-11
+6
-11
@@ -561,17 +561,12 @@
|
||||
if (this.last_search_text.trim() !== this.get_text().trim()) {
|
||||
for (var j = 0; j < this.search_form.fields.length; j++) {
|
||||
var fentry = this.search_form.fields[j][1];
|
||||
switch(fentry.type) {
|
||||
case 'selection':
|
||||
fentry.set_value([]);
|
||||
break;
|
||||
case 'date':
|
||||
case 'datetime':
|
||||
case 'time':
|
||||
fentry.set_value(null, null);
|
||||
break;
|
||||
default:
|
||||
fentry.val('');
|
||||
if (fentry instanceof Sao.ScreenContainer.Selection) {
|
||||
fentry.set_value([]);
|
||||
} else if (fentry instanceof Sao.ScreenContainer.Between) {
|
||||
fentry.set_value(null, null);
|
||||
} else {
|
||||
fentry.val('');
|
||||
}
|
||||
}
|
||||
this.search_form.fields[0][2].focus();
|
||||
|
||||
Reference in new issue
Block a user