From 0aa2aa5a861f760047a5e91858eea38ed82c855d Mon Sep 17 00:00:00 2001 From: dMetzger Date: Tue, 2 Oct 2012 09:50:44 +0000 Subject: [PATCH] // Fixed js condition in productcomments --- modules/productcomments/js/productcomments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/productcomments/js/productcomments.js b/modules/productcomments/js/productcomments.js index 3a19354c8..9bcc784ec 100644 --- a/modules/productcomments/js/productcomments.js +++ b/modules/productcomments/js/productcomments.js @@ -54,7 +54,8 @@ $(function() { e.preventDefault(); // Form element - url_options = productcomments_url_rewrite ? '&' : '?'; + + url_options = parseInt(productcomments_url_rewrite) ? '?' : '&'; $.ajax({ url: productcomments_controller_url+url_options+'action=add_comment&secure_key='+secure_key, data: $('#fancybox-content form').serialize(),