diff options
author | zottel <github@zottel.net> | 2012-03-31 00:30:34 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-03-31 00:30:34 +0200 |
commit | f39e8126773e2a030cf84c8b9d428cc78546c1b9 (patch) | |
tree | ec1318b325ec3dc5ab2bc4ded5dae1c657b8fc7b /view/theme/diabook-aerith/fpostit/fpostit.js | |
parent | 2212e6931096d188be2dea27bcb4877f16c5c2f8 (diff) | |
parent | aace55df0ad279d74c5e612078c3f29d114389dc (diff) | |
download | volse-hubzilla-f39e8126773e2a030cf84c8b9d428cc78546c1b9.tar.gz volse-hubzilla-f39e8126773e2a030cf84c8b9d428cc78546c1b9.tar.bz2 volse-hubzilla-f39e8126773e2a030cf84c8b9d428cc78546c1b9.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'view/theme/diabook-aerith/fpostit/fpostit.js')
-rwxr-xr-x | view/theme/diabook-aerith/fpostit/fpostit.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/view/theme/diabook-aerith/fpostit/fpostit.js b/view/theme/diabook-aerith/fpostit/fpostit.js new file mode 100755 index 000000000..d183c7573 --- /dev/null +++ b/view/theme/diabook-aerith/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 |