diff --git a/core/modules/startup/story.js b/core/modules/startup/story.js index 59024fc71..fb23b2191 100644 --- a/core/modules/startup/story.js +++ b/core/modules/startup/story.js @@ -49,8 +49,8 @@ exports.startup = function() { openStartupTiddlers({defaultToCurrentStory: true}); } },false) - // Listen for the tw-refresh message - $tw.rootWidget.addEventListener("tw-refresh",function(event) { + // Listen for the tw-browser-refresh message + $tw.rootWidget.addEventListener("tw-browser-refresh",function(event) { window.location.hash = ""; window.location.reload(true); }); diff --git a/core/ui/PageControls/refresh.tid b/core/ui/PageControls/refresh.tid index 6acb1bcb2..00789a1d5 100644 --- a/core/ui/PageControls/refresh.tid +++ b/core/ui/PageControls/refresh.tid @@ -3,7 +3,7 @@ tags: $:/tags/PageControls caption: {{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}} description: {{$:/language/Buttons/Refresh/Hint}} -<$button message="tw-refresh" title={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<>> +<$button message="tw-browser-refresh" title={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<>> <$list filter="[prefix[yes]]"> {{$:/core/images/refresh-button}} diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-browser-refresh.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-browser-refresh.tid new file mode 100644 index 000000000..f4eb53295 --- /dev/null +++ b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-browser-refresh.tid @@ -0,0 +1,9 @@ +created: 20140819110529062 +modified: 20140819110529062 +tags: message +title: WidgetMessage: tw-browser-refresh +type: text/vnd.tiddlywiki + +The `tw-browser-refresh` message removs any [[permalink|PermaLinks]] from the browser address bar and refreshes the page, causing the re-display of the [[$:/DefaultTiddlers]], and re-initialisation of any plugin tiddlers. It does not require any properties on the `event` object. + +The refresh message is usually generated with the ButtonWidget and is handled by the core. diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-refresh.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-refresh.tid deleted file mode 100644 index 8f641ed97..000000000 --- a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-refresh.tid +++ /dev/null @@ -1,9 +0,0 @@ -created: 20140819110529062 -modified: 20140819110529062 -tags: message -title: WidgetMessage: tw-refresh -type: text/vnd.tiddlywiki - -The `tw-refresh` message refreshes the current page by removing any [[permalink|PermaLinks]] from the browser address bar, causing the re-display of the [[$:/DefaultTiddlers]], and re-initialisation of any plugin tiddlers. It does not require any properties on the `event` object. - -The refresh message is usually generated with the ButtonWidget and is handled by the core.