diff --git a/static/js/pandora/siteDialog.0xdb.js b/static/js/pandora/siteDialog.0xdb.js index 5cad9a91..c9f2e7d9 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 a5468bf1..de65a683 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) {