switch back to list when using find in item view

This commit is contained in:
rolux 2011-10-29 11:39:00 +00:00
parent 5a06948b97
commit 38f37f3a9f
3 changed files with 6 additions and 4 deletions

View file

@ -53,7 +53,7 @@ pandora.UI = (function() {
if (pandora.$ui.appPanel) { if (pandora.$ui.appPanel) {
// if we're not on page load, // if we're not on page load,
// switch from item view to list view // switch from item view to list view
add['item'] = ''; args['item'] = '';
} }
if (!pandora.user.ui.lists[list]) { if (!pandora.user.ui.lists[list]) {
add['lists.' + that.encode(list)] = {}; add['lists.' + that.encode(list)] = {};

View file

@ -1,6 +1,6 @@
// vim: et:ts=4:sw=4:sts=4:ft=javascript // vim: et:ts=4:sw=4:sts=4:ft=javascript
pandora.ui.helpDialog = function() { pandora.ui.helpDialog = function() {
var content = Ox.Element(), var content = Ox.Element().css({margin: '16px'}),
that = Ox.Dialog({ that = Ox.Dialog({
buttons: [ buttons: [
Ox.Button({ Ox.Button({
@ -27,8 +27,9 @@ pandora.ui.helpDialog = function() {
title: 'Help', title: 'Help',
width: Math.round(window.innerWidth * 0.75) width: Math.round(window.innerWidth * 0.75)
}); });
pandora.api.getPage({name: 'help'}, function(response) { pandora.api.getPage({name: 'help'}, function(result) {
content.html(response.data.body); //content.html(response.data.body);
content.html('Help is coming soon...')
}); });
return that; return that;

View file

@ -41,6 +41,7 @@ pandora.ui.mainPanel = function() {
} }
}, },
pandora_item: function(data) { pandora_item: function(data) {
Ox.print('PANDORA_ITEM', data.value, data.previousValue)
if (!data.value || !data.previousValue) { if (!data.value || !data.previousValue) {
that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel()); that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
} }