Ticket #978: ticket978.patch

File ticket978.patch, 1.0 KB (added by PhilHawksworth, 3 years ago)

new custom events for main.js

  • main.js

     
    3939                store.addNotification(config.notifyTiddlers[s].name,config.notifyTiddlers[s].notify); 
    4040        t1 = new Date(); 
    4141        loadShadowTiddlers(); 
     42         
     43        jQuery().trigger('loadShadows');  
     44         
    4245        t2 = new Date(); 
    4346        store.loadFromDiv("storeArea","store",true); 
    4447        t3 = new Date(); 
    4548        invokeParamifier(params,"onload"); 
     49         
     50        jQuery().trigger('loadTiddlers');  
     51         
    4652        t4 = new Date(); 
    4753        readOnly = (window.location.protocol == "file:") ? false : config.options.chkHttpReadOnly; 
    4854        var pluginProblem = loadPlugins(); 
    4955        t5 = new Date(); 
    5056        formatter = new Formatter(config.formatters); 
    5157        invokeParamifier(params,"onconfig"); 
     58         
     59        jQuery().trigger('loadPlugins');         
     60         
    5261        story.switchTheme(config.options.txtTheme); 
    5362        showBackstage = !readOnly; 
    5463        t6 = new Date(); 
     
    7988                displayMessage("Total: " + (t10-t0) + " ms"); 
    8089        } 
    8190        startingUp = false; 
     91         
     92        jQuery().trigger('startup');  
    8293} 
    8394 
    8495// Restarting