diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-06-13 18:17:15 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 1ab675445e52000d8b667c898aae041357304a33 (patch) | |
tree | 84b956121212a0b15316843dcfca3cda6ca4ad7f /tpl/vintage/editlink.html | |
parent | baa6979194573855b260593094983c33ec338dc7 (diff) | |
download | Shaarli-1ab675445e52000d8b667c898aae041357304a33.tar.gz Shaarli-1ab675445e52000d8b667c898aae041357304a33.tar.zst Shaarli-1ab675445e52000d8b667c898aae041357304a33.zip |
Fix bookmarklet with new routes
* Use the new shaare route
* Add source hidden input in editlink template to close the popup after saving
Diffstat (limited to 'tpl/vintage/editlink.html')
-rw-r--r-- | tpl/vintage/editlink.html | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tpl/vintage/editlink.html b/tpl/vintage/editlink.html index f751d50b..ccf8c677 100644 --- a/tpl/vintage/editlink.html +++ b/tpl/vintage/editlink.html | |||
@@ -8,9 +8,7 @@ | |||
8 | {elseif="$link.description==''"}onload="document.linkform.lf_description.focus();" | 8 | {elseif="$link.description==''"}onload="document.linkform.lf_description.focus();" |
9 | {else}onload="document.linkform.lf_tags.focus();"{/if} > | 9 | {else}onload="document.linkform.lf_tags.focus();"{/if} > |
10 | <div id="pageheader"> | 10 | <div id="pageheader"> |
11 | {if="$source !== 'firefoxsocialapi'"} | ||
12 | {include="page.header"} | 11 | {include="page.header"} |
13 | {else} | ||
14 | <div id="shaarli_title"><a href="{$titleLink}">{$shaarlititle}</a></div> | 12 | <div id="shaarli_title"><a href="{$titleLink}">{$shaarlititle}</a></div> |
15 | {/if} | 13 | {/if} |
16 | <div id="editlinkform"> | 14 | <div id="editlinkform"> |
@@ -55,12 +53,11 @@ | |||
55 | </a> | 53 | </a> |
56 | {/if} | 54 | {/if} |
57 | <input type="hidden" name="token" value="{$token}"> | 55 | <input type="hidden" name="token" value="{$token}"> |
56 | <input type="hidden" name="source" value="{$source}"> | ||
58 | {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if} | 57 | {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if} |
59 | </form> | 58 | </form> |
60 | </div> | 59 | </div> |
61 | </div> | 60 | </div> |
62 | {if="$source !== 'firefoxsocialapi'"} | ||
63 | {include="page.footer"} | 61 | {include="page.footer"} |
64 | {/if} | ||
65 | </body> | 62 | </body> |
66 | </html> | 63 | </html> |