update all items element and folder lists
This commit is contained in:
parent
51f09d3bc9
commit
c3e06cc869
3 changed files with 20 additions and 7 deletions
|
@ -22,9 +22,9 @@ pandora.ui.allItems = function() {
|
|||
}
|
||||
})
|
||||
.bindEvent({
|
||||
pandora_find: function() {
|
||||
that[pandora.user.ui._list ? 'removeClass' : 'addClass']('OxSelected');
|
||||
}
|
||||
pandora_find: updateSelected,
|
||||
pandora_section: updateSelected,
|
||||
pandora_text: updateSelected
|
||||
}),
|
||||
$icon = $('<img>')
|
||||
.attr({src: '/static/png/icon.png'})
|
||||
|
@ -92,7 +92,6 @@ pandora.ui.allItems = function() {
|
|||
tooltip: 'HTML',
|
||||
type: 'image'
|
||||
})
|
||||
.css({opacity: 0.25})
|
||||
.appendTo(that);
|
||||
Ox.Button({
|
||||
style: 'symbol',
|
||||
|
@ -100,10 +99,24 @@ pandora.ui.allItems = function() {
|
|||
tooltip: 'Help',
|
||||
type: 'image'
|
||||
})
|
||||
.css({opacity: 0.25})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
pandora.UI.set({page: 'help'});
|
||||
}
|
||||
})
|
||||
.appendTo(that);
|
||||
}
|
||||
|
||||
updateSelected();
|
||||
|
||||
function updateSelected() {
|
||||
that[
|
||||
(pandora.user.ui.section == 'items' && pandora.user.ui._list)
|
||||
|| (pandora.user.ui.section == 'texts' && pandora.user.ui.text)
|
||||
? 'removeClass' : 'addClass'
|
||||
]('OxSelected');
|
||||
}
|
||||
|
||||
that.update = function(items) {
|
||||
$items && $items.html(Ox.formatNumber(items));
|
||||
};
|
||||
|
|
|
@ -88,7 +88,7 @@ pandora.ui.folderBrowserList = function(id) {
|
|||
width: '10px',
|
||||
height: '10px',
|
||||
padding: '3px',
|
||||
opacity: ui.section == 'items' && data.user == pandora.user.username ? 1 : 0.25
|
||||
opacity: ui.section == 'texts' || data.user == pandora.user.username ? 1 : 0.25
|
||||
});
|
||||
},
|
||||
id: 'type',
|
||||
|
|
|
@ -94,7 +94,7 @@ pandora.ui.folderList = function(id) {
|
|||
width: '10px',
|
||||
height: '10px',
|
||||
padding: '3px',
|
||||
opacity: ui.section == 'items' && data.user == pandora.user.username ? 1 : 0.25
|
||||
opacity: ui.section == 'texts' || data.user == pandora.user.username ? 1 : 0.25
|
||||
});
|
||||
},
|
||||
id: 'type',
|
||||
|
|
Loading…
Reference in a new issue