Browse Source

Update scripts.js

Solves error: "Uncaught TypeError: Property '$' of object [object Object] is not a function "

I noticed the js conflict with Wordpress Canvas Shortcuts plugin.
José Luis Cruz 12 years ago
parent
commit
873a7b478e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      library/js/scripts.js

+ 5 - 5
library/js/scripts.js

@@ -111,12 +111,12 @@ var timeToWaitForLast = 100;
 */
 function loadGravatars() {
   // set the viewport using the function above
-	viewport = updateViewportDimensions();
+  viewport = updateViewportDimensions();
   // if the viewport is tablet or larger, we load in the gravatars
-	if (viewport.width >= 768) {
-		$('.comment img[data-gravatar]').each(function(){
-      jQuery(this).attr('src',$(this).attr('data-gravatar'));
-    });
+  if (viewport.width >= 768) {
+  jQuery('.comment img[data-gravatar]').each(function(){
+    jQuery(this).attr('src',$(this).attr('data-gravatar'));
+  });
 	}
 } // end function