add mediaView.js
This commit is contained in:
parent
5264ca942c
commit
01c4695be7
7 changed files with 127 additions and 223 deletions
|
|
@ -2,12 +2,14 @@
|
|||
pandora.ui.viewSelect = function() {
|
||||
var that = Ox.Select({
|
||||
id: 'viewSelect',
|
||||
items: !pandora.user.ui.item ? $.map(pandora.site.listViews, function(view) {
|
||||
items: !pandora.user.ui.item ? pandora.site.listViews.map(function(view) {
|
||||
return $.extend($.extend({}, view), {
|
||||
checked: pandora.user.ui.lists[pandora.user.ui.list].listView == view.id,
|
||||
title: 'View ' + view.title
|
||||
});
|
||||
}) : $.map(pandora.site.itemViews, function(view) {
|
||||
}) : pandora.site.itemViews.filter(function(view) {
|
||||
return !view.admin || pandora.user.level == 'admin';
|
||||
}).map(function(view) {
|
||||
return $.extend($.extend({}, view), {
|
||||
checked: pandora.user.ui.itemView == view.id,
|
||||
title: 'View: ' + view.title
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue