From: Brandon King Date: Fri, 26 Jun 2009 19:35:03 +0000 (+0000) Subject: CSS fix broke non-library index views; fix for fix. X-Git-Tag: 0.2.6~33 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=776344261814538e59bff4b2019ae27549b7acc1 CSS fix broke non-library index views; fix for fix. --- 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();