forked from 0x2620/pandora
fix a bug in site dialog
This commit is contained in:
parent
d4afd90126
commit
e2ad277a72
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ pandora.ui.siteDialog = function(section) {
|
|||
var dialogHeight = Math.round((window.innerHeight - 48) * 0.75),
|
||||
dialogWidth = Math.round(window.innerWidth * 0.75),
|
||||
isEditable = pandora.site.capabilities.canEditSitePages[pandora.user.level],
|
||||
tabs = pandora.site.sitePages.concat([{id: 'software', title: 'Software'}]);
|
||||
tabs = Ox.clone(pandora.site.sitePages, true).concat([{id: 'software', title: 'Software'}]);
|
||||
Ox.getObjectById(tabs, section).selected = true;
|
||||
var $tabPanel = Ox.TabPanel({
|
||||
content: function(id) {
|
||||
|
|
|
@ -7,7 +7,7 @@ pandora.ui.siteDialog = function(section) {
|
|||
var dialogHeight = Math.round((window.innerHeight - 48) * 0.75),
|
||||
dialogWidth = Math.round(window.innerWidth * 0.75),
|
||||
isEditable = pandora.site.capabilities.canEditSitePages[pandora.user.level],
|
||||
tabs = pandora.site.sitePages.concat([{id: 'software', title: 'Software'}]);
|
||||
tabs = Ox.clone(pandora.site.sitePages, true).concat([{id: 'software', title: 'Software'}]);
|
||||
Ox.getObjectById(tabs, section).selected = true;
|
||||
var $tabPanel = Ox.TabPanel({
|
||||
content: function(id) {
|
||||
|
|
Loading…
Reference in a new issue