Changeset 2809

Show
Ignore:
Timestamp:
11/12/07 04:10:35 (11 months ago)
Author:
JeremyRuston
Message:

Improved ability for plugins to control the presence of the backstage area (ticket #405)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Trunk/core/js/main.js

    r2714 r2809  
    1313var hadConfirmExit = false; // Don't warn more than once 
    1414var safeMode = false; // Disable all plugins and cookies 
     15var showBackstage; // Whether to include the backstage area 
    1516var installedPlugins = []; // Information filled in when plugins are executed 
    1617var startingUp = false; // Whether we're in the process of starting up 
     
    4546        t4 = new Date(); 
    4647        readOnly = (window.location.protocol == "file:") ? false : config.options.chkHttpReadOnly; 
     48        showBackstage = !readOnly; 
    4749        var pluginProblem = loadPlugins(); 
    4850        t5 = new Date(); 
     
    6365        } 
    6466        t9 = new Date(); 
    65         if(!readOnly) 
     67        if(showBackstage) 
    6668                backstage.init(); 
    6769        t10 = new Date();