diff options
author | Michael <icarus@dabo.de> | 2012-04-11 18:47:21 +0200 |
---|---|---|
committer | Michael <icarus@dabo.de> | 2012-04-11 18:47:21 +0200 |
commit | c3139fa0fd49b0b4de4568d46a6946c75ccb2a62 (patch) | |
tree | a46d809d2e11fefba938717d38b1371572e4d815 /view/theme/diabook/fpostit/fpostit.js | |
parent | 81a8d4f9dbd32de133e647c87a5394dd52f009fe (diff) | |
parent | fe257a20324fe68838e5829e19d18777045a41b4 (diff) | |
download | volse-hubzilla-c3139fa0fd49b0b4de4568d46a6946c75ccb2a62.tar.gz volse-hubzilla-c3139fa0fd49b0b4de4568d46a6946c75ccb2a62.tar.bz2 volse-hubzilla-c3139fa0fd49b0b4de4568d46a6946c75ccb2a62.zip |
Merge branch 'master' of github.com:annando/friendica
Diffstat (limited to 'view/theme/diabook/fpostit/fpostit.js')
-rwxr-xr-x | view/theme/diabook/fpostit/fpostit.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/view/theme/diabook/fpostit/fpostit.js b/view/theme/diabook/fpostit/fpostit.js new file mode 100755 index 000000000..d183c7573 --- /dev/null +++ b/view/theme/diabook/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 |