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