mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-28 23:10:46 +00:00
Rename tw-refresh message to tw-browser-refresh
This commit is contained in:
parent
25777b147f
commit
0dfe23e0db
@ -49,8 +49,8 @@ exports.startup = function() {
|
|||||||
openStartupTiddlers({defaultToCurrentStory: true});
|
openStartupTiddlers({defaultToCurrentStory: true});
|
||||||
}
|
}
|
||||||
},false)
|
},false)
|
||||||
// Listen for the tw-refresh message
|
// Listen for the tw-browser-refresh message
|
||||||
$tw.rootWidget.addEventListener("tw-refresh",function(event) {
|
$tw.rootWidget.addEventListener("tw-browser-refresh",function(event) {
|
||||||
window.location.hash = "";
|
window.location.hash = "";
|
||||||
window.location.reload(true);
|
window.location.reload(true);
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}
|
caption: {{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}
|
||||||
description: {{$:/language/Buttons/Refresh/Hint}}
|
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]]">
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/refresh-button}}
|
{{$:/core/images/refresh-button}}
|
||||||
</$list>
|
</$list>
|
||||||
|
@ -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.
|
@ -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.
|
|
Loading…
Reference in New Issue
Block a user