aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-blue/fpostit/fpostit.js
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2012-03-26 20:17:01 +0100
committerThomas Willingham <founder@kakste.com>2012-03-26 20:17:01 +0100
commit286c230fa858b7b1fead9c3ff722f6b1b9478d01 (patch)
tree463f0d075f9593a4d513aa91e08ebc896b00779a /view/theme/diabook-blue/fpostit/fpostit.js
parent64a2b00cdc97e40ac8e9dc8f0b9cdc5d78cdf2c2 (diff)
parent0a3f2bdd5bc51d7fc642f431843a5b13287ae94e (diff)
downloadvolse-hubzilla-286c230fa858b7b1fead9c3ff722f6b1b9478d01.tar.gz
volse-hubzilla-286c230fa858b7b1fead9c3ff722f6b1b9478d01.tar.bz2
volse-hubzilla-286c230fa858b7b1fead9c3ff722f6b1b9478d01.zip
Merge remote-tracking branch 'main/master'
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