]> gitweb.fluxo.info Git - metadot.git/commitdiff
Fixing URL description parameter at pentadactyl links plugin
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Feb 2013 15:33:30 +0000 (13:33 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Feb 2013 15:33:30 +0000 (13:33 -0200)
modules/pentadactyl/pentadactyl.dot/plugins.link/links.js

index d0536a191984488af00d4516b583339a710f4816..3b7468e74197f374c2a3cc560cf897039a864392 100644 (file)
@@ -36,7 +36,7 @@ group.commands.add(["link"],
       var href     = encodeURIComponent(doc.location.href);
       var title    = encodeURIComponent(doc.title);
       var desc     = encodeURIComponent(doc.getSelection());
-      var tags     = encodeURIComponent(args);
-      commands.execute('tabopen ' + instance + href + '&title=' + title + '&description=' + desc + '&tags=' + tags)
+      var tags     = encodeURIComponent(args.toString().replace(/,,/g, ','));
+      commands.execute('tabopen ' + instance + href + '&title=' + title + '&description=' + desc + '&tags=' + tags);
     },
     { argCount: "*" }, true);