diff options
author | friendica <info@friendica.com> | 2012-03-30 04:53:49 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-30 04:53:49 -0700 |
commit | e36b1ed3d7e65dd0bf6a41de4d3ea69ba2775661 (patch) | |
tree | 96cf5bce16fc32da4a643bfb2effe4249a282fdf /view/theme/diabook-aerith/fpostit/fpostit.js | |
parent | 32b346f5f185c8d1e8c55ab102af85e85e33fbbb (diff) | |
parent | 0bee09350df4d41c6354aa97d2648a43945e9ef6 (diff) | |
download | volse-hubzilla-e36b1ed3d7e65dd0bf6a41de4d3ea69ba2775661.tar.gz volse-hubzilla-e36b1ed3d7e65dd0bf6a41de4d3ea69ba2775661.tar.bz2 volse-hubzilla-e36b1ed3d7e65dd0bf6a41de4d3ea69ba2775661.zip |
Merge branch 'pull'
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 |