From 701fd9bb1f2f31e399cde5dbdde1684240401721 Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 21 Feb 2013 14:26:28 -0500 Subject: [PATCH] disable layout js --- app/assets/javascripts/layout.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/app/assets/javascripts/layout.js b/app/assets/javascripts/layout.js index 2bafd2708..e69de29bb 100644 --- a/app/assets/javascripts/layout.js +++ b/app/assets/javascripts/layout.js @@ -1,32 +0,0 @@ -(function() { - Danbooru.Layout = {}; - - Danbooru.Layout.initialize = function() { - if ($("#c-posts").length && $("#a-index").length) { - $(window).resize(Danbooru.Layout.restyle_content); - Danbooru.Layout.restyle_content(); - } - } - - Danbooru.Layout.restyle_content = function() { - if ($(window).width() > 1100) { - $("#content").css("width", "50em"); - } - - if ($(window).width() > 1300) { - $("#content").css("width", "60em"); - } - - if ($(window).width() > 1500) { - $("#content").css("width", "70em"); - } - - if ($(window).width() < 1000) { - $("#content").css("width", "40em"); - } - } -})(); - -$(document).ready(function() { - Danbooru.Layout.initialize(); -});