diff options
-rw-r--r-- | tpl/default/editlink.html | 1 | ||||
-rw-r--r-- | tpl/default/tools.html | 2 | ||||
-rw-r--r-- | tpl/vintage/editlink.html | 5 | ||||
-rw-r--r-- | tpl/vintage/tools.html | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 15edb00d..568545bd 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html | |||
@@ -81,6 +81,7 @@ | |||
81 | </div> | 81 | </div> |
82 | 82 | ||
83 | <input type="hidden" name="token" value="{$token}"> | 83 | <input type="hidden" name="token" value="{$token}"> |
84 | <input type="hidden" name="source" value="{$source}"> | ||
84 | {if="$http_referer"} | 85 | {if="$http_referer"} |
85 | <input type="hidden" name="returnurl" value="{$http_referer}"> | 86 | <input type="hidden" name="returnurl" value="{$http_referer}"> |
86 | {/if} | 87 | {/if} |
diff --git a/tpl/default/tools.html b/tpl/default/tools.html index fd58cca9..d07dabd0 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html | |||
@@ -86,7 +86,7 @@ | |||
86 | alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}'); | 86 | alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}'); |
87 | } | 87 | } |
88 | window.open( | 88 | window.open( |
89 | '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ | 89 | '{$pageabsaddr}admin/shaare?post='%20+%20encodeURIComponent(url)+ |
90 | '&title='%20+%20encodeURIComponent(title)+ | 90 | '&title='%20+%20encodeURIComponent(title)+ |
91 | '&description='%20+%20encodeURIComponent(desc)+ | 91 | '&description='%20+%20encodeURIComponent(desc)+ |
92 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' | 92 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' |
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> |
diff --git a/tpl/vintage/tools.html b/tpl/vintage/tools.html index 32707efa..7b69f43e 100644 --- a/tpl/vintage/tools.html +++ b/tpl/vintage/tools.html | |||
@@ -24,7 +24,7 @@ | |||
24 | var%20url%20=%20location.href; | 24 | var%20url%20=%20location.href; |
25 | var%20title%20=%20document.title%20||%20url; | 25 | var%20title%20=%20document.title%20||%20url; |
26 | window.open( | 26 | window.open( |
27 | '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ | 27 | '{$pageabsaddr}admin/shaare?post='%20+%20encodeURIComponent(url)+ |
28 | '&title='%20+%20encodeURIComponent(title)+ | 28 | '&title='%20+%20encodeURIComponent(title)+ |
29 | '&description='%20+%20encodeURIComponent(document.getSelection())+ | 29 | '&description='%20+%20encodeURIComponent(document.getSelection())+ |
30 | '&source=bookmarklet','_blank','menubar=no,height=390,width=600,toolbar=no,scrollbars=no,status=no,dialog=1' | 30 | '&source=bookmarklet','_blank','menubar=no,height=390,width=600,toolbar=no,scrollbars=no,status=no,dialog=1' |