aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-red/fpostit/fpostit.js
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-03-31 00:30:34 +0200
committerzottel <github@zottel.net>2012-03-31 00:30:34 +0200
commitf39e8126773e2a030cf84c8b9d428cc78546c1b9 (patch)
treeec1318b325ec3dc5ab2bc4ded5dae1c657b8fc7b /view/theme/diabook-red/fpostit/fpostit.js
parent2212e6931096d188be2dea27bcb4877f16c5c2f8 (diff)
parentaace55df0ad279d74c5e612078c3f29d114389dc (diff)
downloadvolse-hubzilla-f39e8126773e2a030cf84c8b9d428cc78546c1b9.tar.gz
volse-hubzilla-f39e8126773e2a030cf84c8b9d428cc78546c1b9.tar.bz2
volse-hubzilla-f39e8126773e2a030cf84c8b9d428cc78546c1b9.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'view/theme/diabook-red/fpostit/fpostit.js')
-rwxr-xr-xview/theme/diabook-red/fpostit/fpostit.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/view/theme/diabook-red/fpostit/fpostit.js b/view/theme/diabook-red/fpostit/fpostit.js
new file mode 100755
index 000000000..d183c7573
--- /dev/null
+++ b/view/theme/diabook-red/fpostit/fpostit.js
@@ -0,0 +1,6 @@
+javascript: (function() {
+ the_url = 'localhost/view/theme/diabook/fpostit/fpostit.php?url=' + encodeURIComponent(window.location.href) + '&title=' + encodeURIComponent(document.title) + '&text=' + encodeURIComponent(''+(window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text));
+ a_funct = function() {
+ if (!window.open(the_url, 'fpostit', 'location=yes,links=no,scrollbars=no,toolbar=no,width=600,height=300')) location.href = the_url};
+ if (/Firefox/.test(navigator.userAgent)) {setTimeout(a_funct, 0)}
+ else {a_funct()}})()" \ No newline at end of file