Index: lams_central/web/login.jsp =================================================================== diff -u -r1bdddb6d02e814bed0d5720619bea1c5d75a9911 -rd2d5b8331e8d4078dc08dfbb2e3ad665d08d3339 --- lams_central/web/login.jsp (.../login.jsp) (revision 1bdddb6d02e814bed0d5720619bea1c5d75a9911) +++ lams_central/web/login.jsp (.../login.jsp) (revision d2d5b8331e8d4078dc08dfbb2e3ad665d08d3339) @@ -50,9 +50,17 @@ submitForm(); } } + + function isBrowserCompatible() { + return Modernizr.atobbtoa && Modernizr.checked && Modernizr.cookies && Modernizr.nthchild && Modernizr.opacity && + Modernizr.svg && Modernizr.todataurlpng && Modernizr.websockets && Modernizr.xhrresponsetypetext; + // Modernizr.datauri - should be included, it's a async test though + // Modernizr.time - should be included, fails in Chrome for an unknown reason (reported) + // Modernizr.xhrresponsetypejson - should be included, fails in IE 11 for an unknown reason (reported) + } $(document).ready(function() { - if (!Modernizr.testAllProps()) { + if (!isBrowserCompatible()) { $('#browserNotCompatible').show(); } $('#j_username').focus();