From 7e16f7431c74cf20015b29088304d01dd22ee3c1 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Sun, 22 Nov 2015 09:55:27 -0800 Subject: [PATCH] fix add to transmet link --- .gitignore | 1 + templates/pages/news.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7e101c5..0b5b2b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Compiled Object files, Static and Dynamic libs (Shared Objects) transmet db/dbconf.yml +csrf-secret.txt .Rhistory .project *.iml diff --git a/templates/pages/news.html b/templates/pages/news.html index 84acb9b..fbbd8da 100644 --- a/templates/pages/news.html +++ b/templates/pages/news.html @@ -55,5 +55,5 @@ {{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}} \ No newline at end of file