Skip to content
Snippets Groups Projects
Commit 0ccdefd9 authored by Vasili Gulevich's avatar Vasili Gulevich
Browse files

Implemented URL persistence

Provides means to link from time entry to the web page or origin,
parent 58e4f0f2
No related branches found
No related tags found
1 merge request!4A link to the origin from timer entry
......@@ -409,6 +409,9 @@ function TogglButtonGM(selector, renderer) {
responseData = JSON.parse(res.responseText);
entryId = responseData && responseData.data && responseData.data.id;
$curEntryId = entryId;
if (params.storeEntryUrl) {
GM_setValue('_url['+entryId+']', window.location.href);
}
document.dispatchEvent(new CustomEvent('TogglButtonGMUpdateStatus'));
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment