Commit 502d2e8d

mo k <mo@mokhan.ca>
2012-08-09 13:03:25
format javascript.
1 parent 618ac5d
Changed files (1)
app
assets
javascripts
app/assets/javascripts/creations.js
@@ -29,17 +29,17 @@ Creations.Crop = {
 };
 Creations.Show = {
   initialize: function(){
-    $('.gallery').colorbox({rel:'gallery', width:function(){
-	        var width = '100%', viewport = $(window).width();
-	        if (viewport > 960) {
-	                width = '50%';
-	        } else if (viewport >= 768) {
-	                width = '80%';
-	        }
-	        return width;
-			}
-			
-			});
-
+    $('.gallery').colorbox({
+      rel:'gallery',
+      width:function(){
+        var width = '100%', viewport = $(window).width();
+        if (viewport > 960) {
+          width = '50%';
+        } else if (viewport >= 768) {
+          width = '80%';
+        }
+        return width;
+      }
+    });
   }
 };