From e2ad277a7259301f1ffcc0c771e64e795b99e0d7 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 16 Jun 2012 21:14:51 +0000 Subject: [PATCH] fix a bug in site dialog --- static/js/pandora/siteDialog.0xdb.js | 2 +- static/js/pandora/siteDialog.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/siteDialog.0xdb.js b/static/js/pandora/siteDialog.0xdb.js index 5cad9a912..c9f2e7d9c 100644 --- a/static/js/pandora/siteDialog.0xdb.js +++ b/static/js/pandora/siteDialog.0xdb.js @@ -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) { diff --git a/static/js/pandora/siteDialog.js b/static/js/pandora/siteDialog.js index a5468bf1a..de65a6833 100644 --- a/static/js/pandora/siteDialog.js +++ b/static/js/pandora/siteDialog.js @@ -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) {