Changeset 6058
- Timestamp:
- 24/07/08 11:09:49 (1 month ago)
- Files:
-
- Trunk/core/js/Dom.js (modified) (1 diff)
- Trunk/core/js/FileSystem.js (modified) (1 diff)
- Trunk/core/js/Http.js (modified) (1 diff)
- Trunk/core/js/Import.js (modified) (2 diffs)
- Trunk/core/js/Manager.js (modified) (1 diff)
- Trunk/core/js/Paramifiers.js (modified) (1 diff)
- Trunk/core/js/Refresh.js (modified) (1 diff)
- Trunk/core/js/TiddlyWiki.js (modified) (1 diff)
- Trunk/core/js/Upgrade.js (modified) (2 diffs)
- Trunk/core/js/Wikifier.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Trunk/core/js/Dom.js
r5503 r6058 71 71 } 72 72 73 //# Remove an event handler73 //# Remove an event handler 74 74 //# Thanks to John Resig, via QuirksMode 75 75 function removeEvent(obj,type,fn) Trunk/core/js/FileSystem.js
r5888 r6058 143 143 } 144 144 145 //# Remove the filename, if present. Use trailing slash (i.e. "foo\bar\") if no filename.145 //# Remove the filename, if present. Use trailing slash (i.e. "foo\bar\") if no filename. 146 146 var pos = path.lastIndexOf("\\"); 147 147 if(pos!=-1) Trunk/core/js/Http.js
r5878 r6058 107 107 108 108 // included for compatibility 109 function doHttp(type,url,data,contentType,username,password,callback,params,headers,allowCache)109 function doHttp(type,url,data,contentType,username,password,callback,params,headers,allowCache) 110 110 { 111 111 return httpReq(type,url,callback,params,headers,data,contentType,username,password,allowCache); Trunk/core/js/Import.js
r5199 r6058 204 204 var wizard = new Wizard(this); 205 205 var t = wizard.getElement("txtWorkspace"); 206 t.value = this.value;206 t.value = this.value; 207 207 this.selectedIndex = 0; 208 208 return false; … … 268 268 wizard.setButtons([ 269 269 {caption: config.macros.importTiddlers.cancelLabel, tooltip: config.macros.importTiddlers.cancelPrompt, onClick: config.macros.importTiddlers.onCancel}, 270 {caption: config.macros.importTiddlers.importLabel, tooltip: config.macros.importTiddlers.importPrompt, onClick: config.macros.importTiddlers.doImport}270 {caption: config.macros.importTiddlers.importLabel, tooltip: config.macros.importTiddlers.importPrompt, onClick: config.macros.importTiddlers.doImport} 271 271 ]); 272 272 }; Trunk/core/js/Manager.js
r4876 r6058 53 53 wizard.setValue("listView",listView); 54 54 wizard.setButtons([ 55 {caption: config.macros.plugins.removeLabel, tooltip: config.macros.plugins.removePrompt, onClick: config.macros.plugins.doRemoveTag},56 {caption: config.macros.plugins.deleteLabel, tooltip: config.macros.plugins.deletePrompt, onClick: config.macros.plugins.doDelete}55 {caption: config.macros.plugins.removeLabel, tooltip: config.macros.plugins.removePrompt, onClick: config.macros.plugins.doRemoveTag}, 56 {caption: config.macros.plugins.deleteLabel, tooltip: config.macros.plugins.deletePrompt, onClick: config.macros.plugins.doDelete} 57 57 ]); 58 58 } Trunk/core/js/Paramifiers.js
r5919 r6058 110 110 for(var i=0; i<v && i<tiddlers.length; i++) 111 111 titles.push(tiddlers[i].title); 112 story.displayTiddlers(null,titles); 112 story.displayTiddlers(null,titles); 113 113 } 114 114 }; Trunk/core/js/Refresh.js
r5871 r6058 74 74 for(var c=0; c<nodes.length; c++) { 75 75 var e = nodes[c], type = null; 76 if(e.getAttribute && (e.tagName ? e.tagName != "IFRAME" : true))76 if(e.getAttribute && (e.tagName ? e.tagName != "IFRAME" : true)) 77 77 type = e.getAttribute("refresh"); 78 78 var refresher = config.refreshers[type]; Trunk/core/js/TiddlyWiki.js
r6022 r6058 99 99 var re = new RegExp("(^!{1,6}" + section.escapeRegExp() + "[ \t]*\n)","mg"); 100 100 re.lastIndex = 0; 101 var match = re.exec(tiddler.text);101 var match = re.exec(tiddler.text); 102 102 if(match) { 103 103 var t = tiddler.text.substr(match.index+match[1].length); Trunk/core/js/Upgrade.js
r4881 r6058 18 18 alert(me.errorCantUpgrade); 19 19 return false; 20 } 20 } 21 21 if(story.areAnyDirty() || store.isDirty()) { 22 22 alert(me.errorNotSaved); … … 66 66 w.setButtons([],me.statusReloadingCore); 67 67 var backupPath = w.getValue("backupPath"); 68 var newLoc = document.location.toString() + '?time=' + new Date().convertToYYYYMMDDHHMM() + '#upgrade:[[' + encodeURI(backupPath) + ']]';68 var newLoc = document.location.toString() + '?time=' + new Date().convertToYYYYMMDDHHMM() + '#upgrade:[[' + encodeURI(backupPath) + ']]'; 69 69 window.setTimeout(function () {window.location = newLoc;},10); 70 70 }; Trunk/core/js/Wikifier.js
r5159 r6058 179 179 var formatterMatch = this.formatter.formatterRegExp.exec(terminatorMatch ? this.source.substr(0,terminatorMatch.index) : this.source); 180 180 while(terminatorMatch || formatterMatch) { 181 //# Check for a terminator match before the next formatter match181 //# Check for a terminator match before the next formatter match 182 182 if(terminatorMatch && (!formatterMatch || terminatorMatch.index <= formatterMatch.index)) { 183 183 //# Output any text before the match