user.ui.updateAdvancedFind -> user.ui.updateAdvancedFindResults

This commit is contained in:
rolux 2013-03-03 11:15:28 +00:00
parent 6cc0a74efc
commit b97ce25867
7 changed files with 14 additions and 13 deletions

View file

@ -778,7 +778,7 @@
"sidebarSize": 256, "sidebarSize": 256,
"textPositions": {}, "textPositions": {},
"theme": "oxdark", "theme": "oxdark",
"updateAdvancedFind": false, "updateAdvancedFindResults": false,
"videoMuted": false, "videoMuted": false,
"videoPoints": {}, "videoPoints": {},
"videoResolution": 96, "videoResolution": 96,

View file

@ -3,6 +3,7 @@
You can edit this file. You can edit this file.
*/ */
{ {
"additionalSort": [ "additionalSort": [
{"key": "director", "operator": "+"}, {"key": "director", "operator": "+"},
@ -796,7 +797,7 @@
"sidebarSize": 256, "sidebarSize": 256,
"textPositions": {}, "textPositions": {},
"theme": "oxmedium", "theme": "oxmedium",
"updateAdvancedFind": false, "updateAdvancedFindResults": false,
"videoMuted": false, "videoMuted": false,
"videoPoints": {}, "videoPoints": {},
"videoResolution": 240, "videoResolution": 240,

View file

@ -700,7 +700,7 @@
"sidebarSize": 256, "sidebarSize": 256,
"textPositions": {}, "textPositions": {},
"theme": "oxlight", "theme": "oxlight",
"updateAdvancedFind": false, "updateAdvancedFindResults": false,
"videoMuted": false, "videoMuted": false,
"videoPoints": {}, "videoPoints": {},
"videoResolution": 240, "videoResolution": 240,

View file

@ -618,7 +618,7 @@
"showTimeline": true, "showTimeline": true,
"sidebarSize": 256, "sidebarSize": 256,
"theme": "oxmedium", "theme": "oxmedium",
"updateAdvancedFind": false, "updateAdvancedFindResults": false,
"videoMuted": false, "videoMuted": false,
"videoPoints": {}, "videoPoints": {},
"videoResolution": 240, "videoResolution": 240,

View file

@ -35,7 +35,7 @@ pandora.ui.filterDialog = function(list) {
}) })
.reloadList(); .reloadList();
}); });
} else if (!pandora.user.ui.updateAdvancedFind) { } else if (!pandora.user.ui.updateAdvancedFindResults) {
pandora.$ui.filterForm.updateResults(); pandora.$ui.filterForm.updateResults();
} }
that.close(); that.close();
@ -55,12 +55,12 @@ pandora.ui.filterDialog = function(list) {
$updateCheckbox = Ox.Checkbox({ $updateCheckbox = Ox.Checkbox({
title: 'Update Results in the Background', title: 'Update Results in the Background',
value: pandora.user.ui.updateAdvancedFind value: pandora.user.ui.updateAdvancedFindResults
}) })
.css({float: 'left', margin: '4px'}) .css({float: 'left', margin: '4px'})
.bindEvent({ .bindEvent({
change: function(data) { change: function(data) {
pandora.UI.set({updateAdvancedFind: data.value}); pandora.UI.set({updateAdvancedFindResults: data.value});
data.value && pandora.$ui.filterForm.updateResults(); data.value && pandora.$ui.filterForm.updateResults();
} }
}); });

View file

@ -45,11 +45,11 @@ pandora.ui.filterForm = function(list) {
id: list.id, id: list.id,
query: data.query query: data.query
}, function(result) { }, function(result) {
if (pandora.user.ui.updateAdvancedFind) { if (pandora.user.ui.updateAdvancedFindResults) {
that.updateResults(data.query); that.updateResults(data.query);
} }
}); });
} else if (pandora.user.ui.updateAdvancedFind) { } else if (pandora.user.ui.updateAdvancedFindResults) {
that.updateResults(); that.updateResults();
} }
that.triggerEvent('change', data); that.triggerEvent('change', data);

View file

@ -49,7 +49,7 @@ pandora.ui.listDialog = function(section) {
if ( if (
pandora.user.ui.section == 'items' pandora.user.ui.section == 'items'
&& data.selected != 'query' && data.selected != 'query'
&& !pandora.user.ui.updateAdvancedFind && !pandora.user.ui.updateAdvancedFindResults
) { ) {
pandora.$ui.filterForm.updateResults(); pandora.$ui.filterForm.updateResults();
} }
@ -107,7 +107,7 @@ pandora.ui.listDialog = function(section) {
click: function() { click: function() {
if ( if (
pandora.$ui.listDialogTabPanel.selected() == 'query' pandora.$ui.listDialogTabPanel.selected() == 'query'
&& !pandora.user.ui.updateAdvancedFind && !pandora.user.ui.updateAdvancedFindResults
) { ) {
pandora.$ui.filterForm.updateResults(); pandora.$ui.filterForm.updateResults();
} }
@ -129,13 +129,13 @@ pandora.ui.listDialog = function(section) {
$updateCheckbox = Ox.Checkbox({ $updateCheckbox = Ox.Checkbox({
title: 'Update Results in the Background', title: 'Update Results in the Background',
value: pandora.user.ui.updateAdvancedFind value: pandora.user.ui.updateAdvancedFindResults
}) })
.css({float: 'left', margin: '4px'}) .css({float: 'left', margin: '4px'})
[section == 'query' ? 'show' : 'hide']() [section == 'query' ? 'show' : 'hide']()
.bindEvent({ .bindEvent({
change: function(data) { change: function(data) {
pandora.UI.set({updateAdvancedFind: data.value}); pandora.UI.set({updateAdvancedFindResults: data.value});
data.value && pandora.$ui.filterForm.updateResults(); data.value && pandora.$ui.filterForm.updateResults();
} }
}); });