diff options
author | tomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net> | 2012-03-24 00:15:31 -0700 |
---|---|---|
committer | tomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net> | 2012-03-24 00:15:31 -0700 |
commit | b23ad806ec8cedbc94d721279fd5615f79c4a4c6 (patch) | |
tree | 82b0de0bf29d6e85a4910dc0492e6734d12e07e8 /view/theme/diabook-blue/fpostit/fpostit.js | |
parent | 64397ff09ff82b66b19ab7919f810e1d3e27352d (diff) | |
parent | ba027f174d593e31a24d6bcbaab490639169d312 (diff) | |
download | volse-hubzilla-b23ad806ec8cedbc94d721279fd5615f79c4a4c6.tar.gz volse-hubzilla-b23ad806ec8cedbc94d721279fd5615f79c4a4c6.tar.bz2 volse-hubzilla-b23ad806ec8cedbc94d721279fd5615f79c4a4c6.zip |
Merge pull request #163 from tomtom84/master
fixes in diabook-derivates
Diffstat (limited to 'view/theme/diabook-blue/fpostit/fpostit.js')
-rwxr-xr-x | view/theme/diabook-blue/fpostit/fpostit.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/view/theme/diabook-blue/fpostit/fpostit.js b/view/theme/diabook-blue/fpostit/fpostit.js new file mode 100755 index 000000000..d183c7573 --- /dev/null +++ b/view/theme/diabook-blue/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 |