summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-29 13:18:51 +0100
committerSarven Capadisli <csarven@status.net>2009-10-29 13:18:51 +0100
commitf0abc0fe15a54da468cf37e748041bba4f362e53 (patch)
tree4116962fad750385464a90ca2910682dc7d4c76a /js/util.js
parent2b5a5e02a4c4bd3861074990ba523ce21cb2749a (diff)
Updated bookmarklet. Created its own action
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 0a943512f..b079388e4 100644
--- a/js/util.js
+++ b/js/util.js
@@ -241,6 +241,9 @@ $(document).ready(function(){
alert(result);
}
else {
+ if($('body')[0].id == 'bookmarklet') {
+ self.close();
+ }
if ($("#command_result", xml).length > 0) {
var result = document._importNode($("p", xml).get(0), true);
result = result.textContent || result.innerHTML;