fix add to transmet link

This commit is contained in:
Dan Ballard 2015-11-22 09:55:27 -08:00
parent 0dc40f0a96
commit 7e16f7431c
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects) # Compiled Object files, Static and Dynamic libs (Shared Objects)
transmet transmet
db/dbconf.yml db/dbconf.yml
csrf-secret.txt
.Rhistory .Rhistory
.project .project
*.iml *.iml

View File

@ -55,5 +55,5 @@
<!-- JS for the launcher of the add bookmarklet --> <!-- JS for the launcher of the add bookmarklet -->
{{define "launch-add"}} {{define "launch-add"}}
javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='{{.url}}news/add',l=d.location,e=encodeURIComponent,u=f+'?popup=1&url='+e(l.href)+'&title='+e(d.title);a=function(){if(!w.open(u,'t','toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=410'))l.href=u;};if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a();void(0) javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='{{.url}}/news/add',l=d.location,e=encodeURIComponent,u=f+'?popup=1&url='+e(l.href)+'&title='+e(d.title);a=function(){if(!w.open(u,'t','toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=410'))l.href=u;};if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a();void(0)
{{end}} {{end}}