Changeset 99

Show
Ignore:
Timestamp:
04/21/06 15:51:10 (3 years ago)
Author:
DevonJones
Message:

2.0.9

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Trunk/core/tiddlywiki.html

    r91 r99  
    11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
    22<script type="text/javascript"> 
    3 var version = {major: 2, minor: 0, revision: 8, date: new Date("Apr 7, 2006"), extensions: {}}; 
     3var version = {major: 2, minor: 0, revision: 9, date: new Date("Apr 18, 2006"), extensions: {}}; 
    44</script> 
    55<!-- 
    6 TiddlyWiki 2.0.8 by Jeremy Ruston, (jeremy [at] osmosoft [dot] com) 
     6TiddlyWiki 2.0.9 by Jeremy Ruston, (jeremy [at] osmosoft [dot] com) 
    77 
    88Copyright (c) Osmosoft Limited 2004-2006 
     
    7676        txtMaxEditRows: "30" 
    7777        }; 
    78  
     78         
    7979// List of notification functions to be called when certain tiddlers are changed or deleted 
    8080config.notifyTiddlers = [ 
     
    144144                } 
    145145        }; 
    146  
     146                 
    147147// Macros; each has a 'handler' member that is inserted later 
    148148config.macros = { 
     
    192192        jump: {text: "jump", tooltip: "Jump to another open tiddler"} 
    193193        }; 
    194  
     194         
    195195// Browser detection... In a very few places, there's nothing else for it but to 
    196196// know what browser we're using. 
     
    469469                w.subWikify(e,this.terminator); 
    470470        }, 
    471  
     471         
    472472        inlineCssHelper:  function(w) 
    473473        { 
     
    663663                                col++; 
    664664                                } 
    665                 } while(matched); 
     665                } while(matched);                
    666666        } 
    667667}, 
     
    697697        name: "monospacedByLineForCSS", 
    698698        match: "^/\\*[\\{]{3}\\*/\\n", 
    699         lookahead: "/\\*[\\{]{3}\\*/\\n*((?:^[^\\n]*\\n)+?)(\\n*^/\\*[\\}]{3}\\*/$\\n?)", 
     699        lookahead: "/\\*[\\{]{3}\\*/\\n*((?:^[^\\n]*\\n)+?)(\\n*^/\\*[\\}]{3}\\*/$\\n?)",  
    700700        handler: config.formatterHelpers.monospacedByLineHelper 
    701701}, 
     
    711711        name: "monospacedByLineForTemplate", 
    712712        match: "^<!--[\\{]{3}-->\\n", 
    713         lookahead: "<!--[\\{]{3}-->\\n*((?:^[^\\n]*\\n)+?)(\\n*^<!--[\\}]{3}-->$\\n?)", 
     713        lookahead: "<!--[\\{]{3}-->\\n*((?:^[^\\n]*\\n)+?)(\\n*^<!--[\\}]{3}-->$\\n?)",  
    714714        handler: config.formatterHelpers.monospacedByLineHelper 
    715715}, 
    716716 
    717717{ 
    718         name: "wikifyCommentForPlugin", 
     718        name: "wikifyCommentForPlugin",  
    719719        match: "^/\\*\\*\\*\\n", 
    720720        terminator: "^\\*\\*\\*/\\n", 
     
    726726 
    727727{ 
    728         name: "wikifyCommentForTemplate", 
     728        name: "wikifyCommentForTemplate",  
    729729        match: "^<!---\\n", 
    730730        terminator: "^--->\\n", 
    731         handler: function(w) 
     731        handler: function(w)  
    732732        { 
    733733                w.subWikify(w.output,this.terminator); 
     
    942942                var lookaheadMatch = lookaheadRegExp.exec(w.source) 
    943943                if(lookaheadMatch && lookaheadMatch.index == w.matchStart && lookaheadMatch[1]) 
    944                         { 
     944                        {                
    945945                        w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length; 
    946946                        invokeMacro(w.output,lookaheadMatch[1],lookaheadMatch[2],w,w.tiddler); 
     
    11511151        this.nextMatch = 0; 
    11521152        this.highlightRegExp = highlightRegExp; 
    1153         this.highlightMatch = null; 
     1153        this.highlightMatch = null;      
    11541154        if(highlightRegExp) 
    11551155                { 
     
    11981198                        // Restore the output pointer and exit 
    11991199                        this.output = oldOutput; 
    1200                         return; 
     1200                        return;          
    12011201                        } 
    12021202                // Check for a formatter match 
     
    20182018{ 
    20192019        var newTitle = story.saveTiddler(title,event.shiftKey); 
    2020         story.displayTiddler(null,newTitle); 
     2020        if(newTitle) 
     2021           story.displayTiddler(null,newTitle); 
    20212022        return false; 
    20222023} 
     
    20342035config.commands.deleteTiddler.handler = function(event,src,title) 
    20352036{ 
    2036         var deleteIt = true; 
     2037        var deleteIt = true;  
    20372038        if (config.options.chkConfirmDelete) 
    20382039                deleteIt = confirm(this.warning.format([title])); 
     
    29292930                                var tags = c.value.readBracketedList(); 
    29302931                                var p = tags.find(tag); 
     2932                                if(add == 0) 
     2933                                    add = (p == null) ? +1 : -1; 
    29312934                                if(add == +1) 
    29322935                                        { 
     
    29382941                                        if(p != null) 
    29392942                                                tags.splice(p,1); 
    2940                                         } 
    2941                                 else if(add == 0) 
    2942                                         { 
    2943                                         if(p != null) 
    2944                                                 tags.splice(p,1); 
    2945                                         else 
    2946                                                 tags.push(tag); 
    29472943                                        } 
    29482944                                var result = []; 
     
    31243120                        minorUpdate = !minorUpdate; 
    31253121                var newDate = new Date(); 
    3126                 store.saveTiddler(title,newTitle,fields.text,minorUpdate ? undefined : config.options.txtUserName,minorUpdate ? undefined : newDate,fields.tags); 
     3122                store.saveTiddler(title,newTitle,fields.text,config.options.txtUserName,minorUpdate ? undefined : newDate,fields.tags); 
    31273123                if(config.options.chkAutoSave) 
    31283124                        saveChanges(); 
     
    31933189                refreshTiddlyLink(e,title); 
    31943190                }, 
    3195  
     3191                 
    31963192        content: function(e,changeList) 
    31973193                { 
     
    32793275        refreshElements(wrapper,null); 
    32803276        display = document.getElementById("tiddlerDisplay"); 
     3277        removeChildren(display); 
    32813278        if(!display) 
    32823279                display = createTiddlyElement(wrapper,"div","tiddlerDisplay"); 
     
    34463443                } 
    34473444        // Save new file 
    3448         var revised = original.substr(0,posOpeningDiv + startSaveArea.length) + 
     3445        var revised = original.substr(0,posOpeningDiv + startSaveArea.length) +  
    34493446                                convertUnicodeToUTF8(allTiddlersAsHtml()) + "\n\t\t" + 
    34503447                                original.substr(posClosingDiv); 
     
    38333830                        for(var namesCounter=0; namesCounter < daPlugins.length; namesCounter++) 
    38343831                                { 
    3835                                 if( (navigator.plugins[pluginsArrayCounter].name.indexOf(daPlugins[namesCounter]) >= 0) || 
     3832                                if( (navigator.plugins[pluginsArrayCounter].name.indexOf(daPlugins[namesCounter]) >= 0) ||  
    38363833                                                (navigator.plugins[pluginsArrayCounter].description.indexOf(daPlugins[namesCounter]) >= 0) ) 
    38373834                                        numFound++; 
     
    47184715 
    47194716// --------------------------------------------------------------------------------- 
    4720 // DOM utilities - many derived from www.quirksmode.org 
     4717// DOM utilities - many derived from www.quirksmode.org  
    47214718// --------------------------------------------------------------------------------- 
    47224719 
     
    49984995 padding: 0.5em; 
    49994996 margin: 1em 0em 0em 0em; 
    5000  border-color: #f0f0f0 #606060 #404040 #d0d0d0; 
    5001  border-style: solid; 
     4997 border-color: #f0f0f0 #606060 #404040 #d0d0d0;  
     4998 border-style: solid;  
    50024999 border-width: 2px; 
    50035000 overflow: auto; 
     
    50105007        background-color: #dd1100; 
    50115008        color: #fff; 
    5012         padding:1em 0em; 
     5009        padding:1em 0em;  
    50135010} 
    50145011 
     
    50265023        if (detectPlugin("TiddlyWiki Saver")) 
    50275024                { 
    5028                 document.write('<embed style="display: none" name="tiddlyWikiSafariSaver" width="0" height="0" type="application/x-webkit-tiddlywiki-saver"></embed>'); 
     5025                document.write('<embed style="display: none" name="tiddlyWikiSafariSaver" width="0" height="0" type="application/x-webkit-tiddlywiki-saver"></embed>');  
    50295026                saveUsingSafari = true; 
    50305027                }