From richfaces-svn-commits at lists.jboss.org Wed Jul 3 17:53:53 2013 Content-Type: multipart/mixed; boundary="===============1663335494624872914==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r23244 - in branches/enterprise/3.3.1.SP3_test_patch: ui/scrollableDataTable/src/main/javascript and 1 other directory. Date: Wed, 03 Jul 2013 17:53:52 -0400 Message-ID: <201307032153.r63LrqFf017833@svn01.web.mwc.hst.phx2.redhat.com> --===============1663335494624872914== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: bleathem Date: 2013-07-03 17:53:52 -0400 (Wed, 03 Jul 2013) New Revision: 23244 Added: branches/enterprise/3.3.1.SP3_test_patch/samples/richfaces-demo/src/main= /webapp/richfaces/scrollableDataTable2.xhtml Modified: branches/enterprise/3.3.1.SP3_test_patch/ui/scrollableDataTable/src/main= /javascript/ClientUILib.js Log: RF-7169: Fixed the browser detection for msie >=3D 9 broswers running in ms= ie 8 document mode Added: branches/enterprise/3.3.1.SP3_test_patch/samples/richfaces-demo/src/= main/webapp/richfaces/scrollableDataTable2.xhtml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/enterprise/3.3.1.SP3_test_patch/samples/richfaces-demo/src/mai= n/webapp/richfaces/scrollableDataTable2.xhtml (rev = 0) +++ branches/enterprise/3.3.1.SP3_test_patch/samples/richfaces-demo/src/mai= n/webapp/richfaces/scrollableDataTable2.xhtml 2013-07-03 21:53:52 UTC (rev = 23244) @@ -0,0 +1,88 @@ + + + = + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + X + + + + + + + + + + + + + + + + + + + + + + + + + + + Modified: branches/enterprise/3.3.1.SP3_test_patch/ui/scrollableDataTable/s= rc/main/javascript/ClientUILib.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/enterprise/3.3.1.SP3_test_patch/ui/scrollableDataTable/src/mai= n/javascript/ClientUILib.js 2013-06-28 17:52:42 UTC (rev 23243) +++ branches/enterprise/3.3.1.SP3_test_patch/ui/scrollableDataTable/src/mai= n/javascript/ClientUILib.js 2013-07-03 21:53:52 UTC (rev 23244) @@ -99,30 +99,37 @@ var ua =3D navigator.userAgent.toLowerCase(); /** @type Boolean */ this.isOpera =3D (ua.indexOf('opera') > -1); - /** @type Boolean */ + /** @type Boolean */ this.isSafari =3D (ua.indexOf('webkit') > -1); - /** @type Boolean */ + /** @type Boolean */ this.isIE =3D (window.ActiveXObject); + if (typeof document.documentMode !=3D=3D 'undefined') { + /** @type Boolean */ + this.isIE7 =3D (document.documentMode =3D=3D=3D 7); + /** @type Boolean */ + this.isIE8 =3D (document.documentMode =3D=3D=3D 8); + } else { + /** @type Boolean */ + this.isIE7 =3D (ua.indexOf('msie 7') > -1); + /** @type Boolean */ + this.isIE8 =3D (ua.indexOf('msie 8') > -1); + } /** @type Boolean */ - this.isIE7 =3D (ua.indexOf('msie 7') > -1); - /** @type Boolean */ - this.isIE8 =3D (ua.indexOf('msie 8') > -1); - /** @type Boolean */ this.isGecko =3D !this.isSafari && (ua.indexOf('gecko') > -1); - = + if(ua.indexOf("windows") !=3D -1 || ua.indexOf("win32") !=3D -1){ - /** @type Boolean */ - this.isWindows =3D true; + /** @type Boolean */ + this.isWindows =3D true; }else if(ua.indexOf("macintosh") !=3D -1){ /** @type Boolean */ - this.isMac =3D true; + this.isMac =3D true; } if(this.isIE && !this.isIE7){ - try{ - document.execCommand("BackgroundImageCache", false, true); - }catch(e){} - } - } = + try{ + document.execCommand("BackgroundImageCache", false, true); + }catch(e){} + } + } }; = var ClientUILogger =3D { --===============1663335494624872914==--