changeset 13:06e6dbdedd47

(none)
author Edho Arief <me@myconan.net>
date Thu, 06 Aug 2015 05:54:06 +0000
parents c1a01d692910
children 6415f831aa5a
files jiku-chu-direct-link.js
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jiku-chu-direct-link.js	Thu Aug 06 05:52:29 2015 +0000
+++ b/jiku-chu-direct-link.js	Thu Aug 06 05:54:06 2015 +0000
@@ -14,9 +14,9 @@
     function(el) {
       var
         productId = el.getAttribute("onclick").replace(/.*product_id=(\d+).*/, "$1"),
-        url = "/products/detail.php?product_id=" + productId
-      el.setAttribute("href", url)
-      el.setAttribute("onclick", "")
+        url = "/products/detail.php?product_id=" + productId;
+      el.setAttribute("href", url);
+      el.setAttribute("onclick", "");
     }
   )
 }).call();
\ No newline at end of file