dont use new Ox.
This commit is contained in:
parent
957567123e
commit
4b7224526a
32 changed files with 140 additions and 140 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
||||
pandora.ui.folders = function() {
|
||||
var that = new Ox.Element()
|
||||
var that = Ox.Element()
|
||||
.css({overflowX: 'hidden', overflowY: 'auto'})
|
||||
.bindEvent({
|
||||
resize: function(event, data) {
|
||||
|
|
@ -15,7 +15,7 @@ pandora.ui.folders = function() {
|
|||
if (pandora.user.ui.section == 'site') {
|
||||
$.each(pandora.site.sectionFolders.site, function(i, folder) {
|
||||
var height = (Ox.getObjectById(pandora.site.sectionFolders.site, folder.id).items.length * 16);
|
||||
pandora.$ui.folder[i] = new Ox.CollapsePanel({
|
||||
pandora.$ui.folder[i] = Ox.CollapsePanel({
|
||||
id: folder.id,
|
||||
collapsed: !pandora.user.ui.showFolder.site[folder.id],
|
||||
size: 16,
|
||||
|
|
@ -45,7 +45,7 @@ pandora.ui.folders = function() {
|
|||
$.each(pandora.site.sectionFolders.items, function(i, folder) {
|
||||
var extras = [];
|
||||
if (folder.id == 'personal' && pandora.user.level != 'guest') {
|
||||
extras = [new Ox.Select({
|
||||
extras = [Ox.Select({
|
||||
items: [
|
||||
{ id: 'new', title: 'New List...' },
|
||||
{ id: 'newfromselection', title: 'New List from Current Selection...', disabled: true },
|
||||
|
|
@ -85,7 +85,7 @@ pandora.ui.folders = function() {
|
|||
}
|
||||
})];
|
||||
} else if (folder.id == 'favorite' && pandora.user.level != 'guest') {
|
||||
extras = [new Ox.Button({
|
||||
extras = [Ox.Button({
|
||||
selectable: true,
|
||||
style: 'symbol',
|
||||
title: 'Edit',
|
||||
|
|
@ -109,7 +109,7 @@ pandora.ui.folders = function() {
|
|||
}
|
||||
})];
|
||||
} else if (folder.id == 'featured' && pandora.user.level == 'admin') {
|
||||
extras = [new Ox.Button({
|
||||
extras = [Ox.Button({
|
||||
selectable: true,
|
||||
style: 'symbol',
|
||||
title: 'Edit',
|
||||
|
|
@ -132,7 +132,7 @@ pandora.ui.folders = function() {
|
|||
}
|
||||
})];
|
||||
}
|
||||
pandora.$ui.folder[i] = new Ox.CollapsePanel({
|
||||
pandora.$ui.folder[i] = Ox.CollapsePanel({
|
||||
id: folder.id,
|
||||
collapsed: !pandora.user.ui.showFolder.items[folder.id],
|
||||
extras: extras,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue