Commit 502d2e8d
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;
+ }
+ });
}
};