Updated bookmarklet. Created its own action

This commit is contained in:
Sarven Capadisli
2009-10-29 13:18:51 +01:00
parent 2b5a5e02a4
commit f0abc0fe15
4 changed files with 81 additions and 1 deletions

View File

@@ -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;