TiddlyWiki.org

Changeset 4022

Show
Ignore:
Timestamp:
17/03/08 16:41:30 (6 months ago)
Author:
JeremyRuston
Message:

Enhanced <<saveChanges>> macro to take optional custom label and tooltip (ticket #497)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/core/js/Macros.js

    r3554 r4022  
    211211}; 
    212212 
    213 config.macros.saveChanges.handler = function(place
     213config.macros.saveChanges.handler = function(place,macroName,params
    214214{ 
    215215        if(!readOnly) 
    216                 createTiddlyButton(place,this.label,this.prompt,this.onClick,null,null,this.accessKey); 
     216                createTiddlyButton(place,params[0] || this.label,params[1] || this.prompt,this.onClick,null,null,this.accessKey); 
    217217}; 
    218218