getting url
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 11 Dec 2015 19:50:10 +0000 (14:50 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 11 Dec 2015 19:50:10 +0000 (14:50 -0500)
js/galleria.min.js

index 3d5f96a..c749a9c 100644 (file)
@@ -1,8 +1,8 @@
 !function(){jQuery(window).load(function(){
-    if(jQuery(location).attr('pathname').indexOf("page_id=18") >= 0){
+    if(window.location.href.indexOf("page_id=18") >= 0){
         alert(jQuery(location).attr('pathname'));
     } else {
-        alert(jQuery(location).attr('pathname'));
+        alert(window.location.href);
     }
     jQuery(".product-category.product .fadeIn").find("mark").remove();
     jQuery('.page_item.page-item-16').append("<ul><li>test</li><li>test</li><li>test</li><li>test</li> </ul>");