1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Rename tw-refresh message to tw-browser-refresh

This commit is contained in:
Jermolene 2014-08-19 13:11:18 +01:00
parent 25777b147f
commit 0dfe23e0db
4 changed files with 12 additions and 12 deletions

View File

@ -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);
});

View File

@ -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=<<tw-config-toolbar-class>>>
<$button message="tw-browser-refresh" title={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tw-config-toolbar-class>>>
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/refresh-button}}
</$list>

View File

@ -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.

View File

@ -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.