Changeset 755

Show
Ignore:
Timestamp:
09/20/06 12:54:44 (2 years ago)
Author:
JeremyRuston
Message:

Restored automatic updating for modifications to ColorPalette?

Location:
Branches/2.1/core/js
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Branches/2.1/core/js/Config.js

    r713 r755  
    4949        {name: "SiteTitle", notify: refreshPageTitle}, 
    5050        {name: "SiteSubtitle", notify: refreshPageTitle}, 
     51        {name: "ColorPalette", notify: refreshColorPalette}, 
    5152        {name: null, notify: refreshDisplay} 
    5253        ]; 
     
    177178 
    178179config.shadowTiddlers = { 
    179         ColorPalette: "<<refreshDisplay>>\n" + 
    180                                   "Background: #fff\n" +  
     180        ColorPalette: "Background: #fff\n" +  
    181181                                  "Foreground: #000\n" + 
    182182                                  "PrimaryPale: #8cf\n" + 
  • Branches/2.1/core/js/Refresh.js

    r686 r755  
    141141} 
    142142 
     143function refreshColorPalette(title) 
     144{ 
     145        if(!startingUp) 
     146                refreshAll(); 
     147} 
     148 
     149function refreshAll() 
     150{ 
     151        refreshPageTemplate(); 
     152        refreshDisplay(); 
     153        refreshStyles("StyleSheetLayout"); 
     154        refreshStyles("StyleSheetColors"); 
     155        refreshStyles("StyleSheet"); 
     156        refreshStyles("StyleSheetPrint"); 
     157} 
     158