bugfix for find element
This commit is contained in:
parent
c8aa818fed
commit
fd84824ca7
1 changed files with 34 additions and 25 deletions
|
@ -704,10 +704,18 @@ var pandora = new Ox.App({
|
||||||
id: 'input',
|
id: 'input',
|
||||||
width: 192
|
width: 192
|
||||||
})
|
})
|
||||||
.bindEvent('submit', function(event, data) {
|
.bindEvent({
|
||||||
|
submit: function(event, data) {
|
||||||
var key = app.user.ui.findQuery.conditions.length ?
|
var key = app.user.ui.findQuery.conditions.length ?
|
||||||
app.user.ui.findQuery.conditions[0].key : '',
|
app.user.ui.findQuery.conditions[0].key : '',
|
||||||
query;
|
query;
|
||||||
|
if (that.value()[0].id == 'all') { // fixme: ambiguous?
|
||||||
|
app.$ui.sectionList.forEach(function($list) {
|
||||||
|
$list.options({selected: []});
|
||||||
|
}); // fixme: doesn't cover complex lists
|
||||||
|
app.user.ui.list = '';
|
||||||
|
app.user.ui.listQuery = {conditions: [], operator: ''};
|
||||||
|
}
|
||||||
app.user.ui.findQuery.conditions = [
|
app.user.ui.findQuery.conditions = [
|
||||||
{
|
{
|
||||||
key: key == 'all' ? '' : key,
|
key: key == 'all' ? '' : key,
|
||||||
|
@ -735,6 +743,7 @@ var pandora = new Ox.App({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
history.pushState({}, '', '/' + Query.toString(query));
|
history.pushState({}, '', '/' + Query.toString(query));
|
||||||
|
}
|
||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
id: 'findElement'
|
id: 'findElement'
|
||||||
|
|
Loading…
Reference in a new issue