aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-blue/fpostit/fpostit.js
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-03-24 08:13:48 +0100
committertommy tomson <thomas.bierey@gmx.de>2012-03-24 08:13:48 +0100
commitba027f174d593e31a24d6bcbaab490639169d312 (patch)
tree82b0de0bf29d6e85a4910dc0492e6734d12e07e8 /view/theme/diabook-blue/fpostit/fpostit.js
parent64397ff09ff82b66b19ab7919f810e1d3e27352d (diff)
downloadvolse-hubzilla-ba027f174d593e31a24d6bcbaab490639169d312.tar.gz
volse-hubzilla-ba027f174d593e31a24d6bcbaab490639169d312.tar.bz2
volse-hubzilla-ba027f174d593e31a24d6bcbaab490639169d312.zip
add right_aside to diabook-blue
Diffstat (limited to 'view/theme/diabook-blue/fpostit/fpostit.js')
-rwxr-xr-xview/theme/diabook-blue/fpostit/fpostit.js6
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