aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-aerith/fpostit/fpostit.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-30 04:53:49 -0700
committerfriendica <info@friendica.com>2012-03-30 04:53:49 -0700
commite36b1ed3d7e65dd0bf6a41de4d3ea69ba2775661 (patch)
tree96cf5bce16fc32da4a643bfb2effe4249a282fdf /view/theme/diabook-aerith/fpostit/fpostit.js
parent32b346f5f185c8d1e8c55ab102af85e85e33fbbb (diff)
parent0bee09350df4d41c6354aa97d2648a43945e9ef6 (diff)
downloadvolse-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-xview/theme/diabook-aerith/fpostit/fpostit.js6
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