From 776344261814538e59bff4b2019ae27549b7acc1 Mon Sep 17 00:00:00 2001 From: Brandon King Date: Fri, 26 Jun 2009 19:35:03 +0000 Subject: [PATCH] CSS fix broke non-library index views; fix for fix. --- htsworkflow/frontend/static/js/htsw.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htsworkflow/frontend/static/js/htsw.js b/htsworkflow/frontend/static/js/htsw.js index 363e224..d5829b3 100644 --- a/htsworkflow/frontend/static/js/htsw.js +++ b/htsworkflow/frontend/static/js/htsw.js @@ -25,7 +25,11 @@ $(document).ready(function(){ //---------------------------------------- // Django Library Page CSS Fix var fix_library_css = function() { - Ext.fly('library-index-div').select('*').addClass('djangocss'); + var tofix = Ext.fly('library-index-div'); + if (tofix != null) + { + tofix.select('*').addClass('djangocss'); + } } fix_library_css(); -- 2.30.2