//-- //-- Backstage //-- // Backstage tasks config.tasks.save.action = saveChanges; var backstage = { area: null, toolbar: null, button: null, showButton: null, hideButton: null, cloak: null, panel: null, panelBody: null, panelFooter: null, currTabName: null, currTabElem: null, content: null, init: function() { var cmb = config.messages.backstage; this.area = document.getElementById("backstageArea"); this.toolbar = jQuery("#backstageToolbar").empty()[0]; this.button = jQuery("#backstageButton").empty()[0]; this.button.style.display = "block"; var t = cmb.open.text + " " + glyph("bentArrowLeft"); this.showButton = createTiddlyButton(this.button,t,cmb.open.tooltip, function(e) {backstage.show(); return false;},null,"backstageShow"); t = glyph("bentArrowRight") + " " + cmb.close.text; this.hideButton = createTiddlyButton(this.button,t,cmb.close.tooltip, function(e) {backstage.hide(); return false;},null,"backstageHide"); this.cloak = document.getElementById("backstageCloak"); this.panel = document.getElementById("backstagePanel"); this.panelFooter = createTiddlyElement(this.panel,"div",null,"backstagePanelFooter"); this.panelBody = createTiddlyElement(this.panel,"div",null,"backstagePanelBody"); this.cloak.onmousedown = function(e) {backstage.switchTab(null);}; createTiddlyText(this.toolbar,cmb.prompt); for(t=0; t