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) {
|
||||
//Ox.Log('', 'ACTION', action)
|
||||
pandora.$ui.accountForm && pandora.$ui.accountForm.removeElement();
|
||||
pandora.$ui.accountForm && pandora.$ui.accountForm.remove();
|
||||
var buttons = {
|
||||
signin: ['signup', 'reset'],
|
||||
signup: ['signin'],
|
||||
|
@ -120,7 +120,7 @@ pandora.ui.accountForm = function(action, value) {
|
|||
//Ox.Event.unbind('usernameOrEmailInput')
|
||||
}
|
||||
//Ox.Log('', 'REMOVING ITEM', item.options('id'));
|
||||
item.removeElement();
|
||||
item.remove();
|
||||
});
|
||||
}
|
||||
var items = {
|
||||
|
|
|
@ -22,7 +22,7 @@ pandora.ui.appPanel = function() {
|
|||
return that;
|
||||
}
|
||||
that.reload = function() {
|
||||
pandora.$ui.appPanel.removeElement();
|
||||
pandora.$ui.appPanel.remove();
|
||||
pandora.$ui.appPanel = pandora.ui.appPanel().appendTo(pandora.$ui.body);
|
||||
return that;
|
||||
}
|
||||
|
|
|
@ -109,11 +109,9 @@ pandora.ui.home = function() {
|
|||
pandora.$ui.findInput.options({value: value});
|
||||
that.fadeOutScreen();
|
||||
pandora.UI.set('find', {
|
||||
conditions: [{
|
||||
key: '*',
|
||||
value: value,
|
||||
operator: '='
|
||||
}],
|
||||
conditions: value === ''
|
||||
? []
|
||||
: [{key: '*', value: value, operator: '='}],
|
||||
operator: '&'
|
||||
});
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ pandora.ui.info = function() {
|
|||
keys: ['duration', 'rendered', 'videoRatio']
|
||||
}, function(result) {
|
||||
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({
|
||||
duration: result.data.duration,
|
||||
frameRatio: result.data.videoRatio,
|
||||
|
|
|
@ -25,11 +25,11 @@ pandora.ui.leftPanel = function() {
|
|||
pandora.user.ui.sidebarSize = data.size;
|
||||
var infoHeight = pandora.getInfoHeight(true);
|
||||
if (data.size < pandora.site.sectionButtonsWidth && pandora.$ui.sectionButtons) {
|
||||
pandora.$ui.sectionButtons.removeElement();
|
||||
pandora.$ui.sectionButtons.remove();
|
||||
delete pandora.$ui.sectionButtons;
|
||||
pandora.$ui.sectionbar.append(pandora.$ui.sectionSelect = 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;
|
||||
pandora.$ui.sectionbar.append(pandora.$ui.sectionButtons = pandora.ui.sectionButtons());
|
||||
}
|
||||
|
|
|
@ -44,8 +44,8 @@ pandora.ui.toolbar = function() {
|
|||
Ox.Log('', 'IS/WAS', isNavigationView, wasNavigationView);
|
||||
if (isNavigationView != wasNavigationView) {
|
||||
if (isNavigationView) {
|
||||
pandora.$ui.sortSelect.removeElement();
|
||||
pandora.$ui.orderButton.removeElement();
|
||||
pandora.$ui.sortSelect.remove();
|
||||
pandora.$ui.orderButton.remove();
|
||||
} else {
|
||||
pandora.$ui.sortSelect = pandora.ui.sortSelect().insertAfter(pandora.$ui.viewSelect);
|
||||
pandora.$ui.orderButton = pandora.ui.orderButton().insertAfter(pandora.$ui.sortSelect);
|
||||
|
|
Loading…
Reference in a new issue