forked from 0x2620/pandora
removeElement -> remove
dont send empty query
This commit is contained in:
parent
d3225ad4af
commit
a4085880b4
6 changed files with 11 additions and 13 deletions
|
@ -23,7 +23,7 @@ pandora.ui.accountDialog = function(action) {
|
||||||
|
|
||||||
pandora.ui.accountDialogOptions = function(action, value) {
|
pandora.ui.accountDialogOptions = function(action, value) {
|
||||||
//Ox.Log('', 'ACTION', action)
|
//Ox.Log('', 'ACTION', action)
|
||||||
pandora.$ui.accountForm && pandora.$ui.accountForm.removeElement();
|
pandora.$ui.accountForm && pandora.$ui.accountForm.remove();
|
||||||
var buttons = {
|
var buttons = {
|
||||||
signin: ['signup', 'reset'],
|
signin: ['signup', 'reset'],
|
||||||
signup: ['signin'],
|
signup: ['signin'],
|
||||||
|
@ -120,7 +120,7 @@ pandora.ui.accountForm = function(action, value) {
|
||||||
//Ox.Event.unbind('usernameOrEmailInput')
|
//Ox.Event.unbind('usernameOrEmailInput')
|
||||||
}
|
}
|
||||||
//Ox.Log('', 'REMOVING ITEM', item.options('id'));
|
//Ox.Log('', 'REMOVING ITEM', item.options('id'));
|
||||||
item.removeElement();
|
item.remove();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
var items = {
|
var items = {
|
||||||
|
|
|
@ -22,7 +22,7 @@ pandora.ui.appPanel = function() {
|
||||||
return that;
|
return that;
|
||||||
}
|
}
|
||||||
that.reload = function() {
|
that.reload = function() {
|
||||||
pandora.$ui.appPanel.removeElement();
|
pandora.$ui.appPanel.remove();
|
||||||
pandora.$ui.appPanel = pandora.ui.appPanel().appendTo(pandora.$ui.body);
|
pandora.$ui.appPanel = pandora.ui.appPanel().appendTo(pandora.$ui.body);
|
||||||
return that;
|
return that;
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,11 +109,9 @@ pandora.ui.home = function() {
|
||||||
pandora.$ui.findInput.options({value: value});
|
pandora.$ui.findInput.options({value: value});
|
||||||
that.fadeOutScreen();
|
that.fadeOutScreen();
|
||||||
pandora.UI.set('find', {
|
pandora.UI.set('find', {
|
||||||
conditions: [{
|
conditions: value === ''
|
||||||
key: '*',
|
? []
|
||||||
value: value,
|
: [{key: '*', value: value, operator: '='}],
|
||||||
operator: '='
|
|
||||||
}],
|
|
||||||
operator: '&'
|
operator: '&'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ pandora.ui.info = function() {
|
||||||
keys: ['duration', 'rendered', 'videoRatio']
|
keys: ['duration', 'rendered', 'videoRatio']
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
if (result.data && result.data.rendered) {
|
if (result.data && result.data.rendered) {
|
||||||
pandora.$ui.videoPreview && pandora.$ui.videoPreview.removeElement();
|
pandora.$ui.videoPreview && pandora.$ui.videoPreview.remove();
|
||||||
pandora.$ui.videoPreview = pandora.ui.videoPreview({
|
pandora.$ui.videoPreview = pandora.ui.videoPreview({
|
||||||
duration: result.data.duration,
|
duration: result.data.duration,
|
||||||
frameRatio: result.data.videoRatio,
|
frameRatio: result.data.videoRatio,
|
||||||
|
|
|
@ -25,11 +25,11 @@ pandora.ui.leftPanel = function() {
|
||||||
pandora.user.ui.sidebarSize = data.size;
|
pandora.user.ui.sidebarSize = data.size;
|
||||||
var infoHeight = pandora.getInfoHeight(true);
|
var infoHeight = pandora.getInfoHeight(true);
|
||||||
if (data.size < pandora.site.sectionButtonsWidth && pandora.$ui.sectionButtons) {
|
if (data.size < pandora.site.sectionButtonsWidth && pandora.$ui.sectionButtons) {
|
||||||
pandora.$ui.sectionButtons.removeElement();
|
pandora.$ui.sectionButtons.remove();
|
||||||
delete pandora.$ui.sectionButtons;
|
delete pandora.$ui.sectionButtons;
|
||||||
pandora.$ui.sectionbar.append(pandora.$ui.sectionSelect = pandora.ui.sectionSelect());
|
pandora.$ui.sectionbar.append(pandora.$ui.sectionSelect = pandora.ui.sectionSelect());
|
||||||
} else if (data.size >= pandora.site.sectionButtonsWidth && pandora.$ui.sectionSelect) {
|
} else if (data.size >= pandora.site.sectionButtonsWidth && pandora.$ui.sectionSelect) {
|
||||||
pandora.$ui.sectionSelect.removeElement();
|
pandora.$ui.sectionSelect.remove();
|
||||||
delete pandora.$ui.sectionSelect;
|
delete pandora.$ui.sectionSelect;
|
||||||
pandora.$ui.sectionbar.append(pandora.$ui.sectionButtons = pandora.ui.sectionButtons());
|
pandora.$ui.sectionbar.append(pandora.$ui.sectionButtons = pandora.ui.sectionButtons());
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,8 +44,8 @@ pandora.ui.toolbar = function() {
|
||||||
Ox.Log('', 'IS/WAS', isNavigationView, wasNavigationView);
|
Ox.Log('', 'IS/WAS', isNavigationView, wasNavigationView);
|
||||||
if (isNavigationView != wasNavigationView) {
|
if (isNavigationView != wasNavigationView) {
|
||||||
if (isNavigationView) {
|
if (isNavigationView) {
|
||||||
pandora.$ui.sortSelect.removeElement();
|
pandora.$ui.sortSelect.remove();
|
||||||
pandora.$ui.orderButton.removeElement();
|
pandora.$ui.orderButton.remove();
|
||||||
} else {
|
} else {
|
||||||
pandora.$ui.sortSelect = pandora.ui.sortSelect().insertAfter(pandora.$ui.viewSelect);
|
pandora.$ui.sortSelect = pandora.ui.sortSelect().insertAfter(pandora.$ui.viewSelect);
|
||||||
pandora.$ui.orderButton = pandora.ui.orderButton().insertAfter(pandora.$ui.sortSelect);
|
pandora.$ui.orderButton = pandora.ui.orderButton().insertAfter(pandora.$ui.sortSelect);
|
||||||
|
|
Loading…
Reference in a new issue