diff --git a/core/modules/new_widgets/version.js b/core/modules/new_widgets/version.js deleted file mode 100755 index 1fb2326b4..000000000 --- a/core/modules/new_widgets/version.js +++ /dev/null @@ -1,62 +0,0 @@ -/*\ -title: $:/core/modules/new_widgets/version.js -type: application/javascript -module-type: new_widget - -Version widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/new_widgets/widget.js").widget; - -var VersionWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -VersionWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -VersionWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.execute(); - var textNode = this.document.createTextNode($tw.version); - parent.insertBefore(textNode,nextSibling); - this.domNodes.push(textNode); -}; - -/* -Compute the internal state of the widget -*/ -VersionWidget.prototype.execute = function() { -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -VersionWidget.prototype.refresh = function(changedTiddlers) { - return false; -}; - -/* -Remove any DOM nodes created by this widget -*/ -VersionWidget.prototype.removeChildDomNodes = function() { - $tw.utils.each(this.domNodes,function(domNode) { - domNode.parentNode.removeChild(domNode); - }); - this.domNodes = []; -}; - -exports.version = VersionWidget; - -})(); diff --git a/core/templates/version.tid b/core/templates/version.tid index 1533b7af0..c3ef334cf 100644 --- a/core/templates/version.tid +++ b/core/templates/version.tid @@ -1,3 +1,3 @@ title: $:/core/templates/version -<$version/> \ No newline at end of file +<> \ No newline at end of file diff --git a/core/ui/ToolsPanel.tid b/core/ui/ToolsPanel.tid index 79584d084..e639cd997 100644 --- a/core/ui/ToolsPanel.tid +++ b/core/ui/ToolsPanel.tid @@ -20,4 +20,4 @@ Import: <$browse/> --- -TiddlyWiki5 version <$version/> +TiddlyWiki5 version <> diff --git a/core/wiki/ControlPanel.tid b/core/wiki/ControlPanel.tid index 82971d359..36071162a 100644 --- a/core/wiki/ControlPanel.tid +++ b/core/wiki/ControlPanel.tid @@ -23,6 +23,6 @@ Edit [[DefaultTiddlers|$:/DefaultTiddlers]] to choose which tiddlers are display ''Additional information about this ~TiddlyWiki'' -*~TiddlyWiki5 version <$version/> +*~TiddlyWiki5 version <> *[[Wiki Info|$:/WikiInfo]] *[[Internal configuration information|$:/ConfigInfo]] diff --git a/editions/tw5.com/tiddlers/widgets/VersionWidget.tid b/editions/tw5.com/tiddlers/widgets/VersionWidget.tid deleted file mode 100644 index 728d888fd..000000000 --- a/editions/tw5.com/tiddlers/widgets/VersionWidget.tid +++ /dev/null @@ -1,14 +0,0 @@ -title: VersionWidget -created: 201310241419 -creator: JeremyRuston -modified: 201310300837 -modifier: JeremyRuston -tags: widget - -! Introduction - -The version widget displays the current TiddlyWiki core version number. - -! Content and Attributes - -The content of the `<$version>` widget is ignored, and it doesn't take any attributes