From 18886573c5d1f58eb55e729b57c317530210f51b Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 23 Feb 2010 14:00:31 +0000 Subject: [PATCH] Added workaround for IE8 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15676 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/include/datepicker.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gosa-core/html/include/datepicker.js b/gosa-core/html/include/datepicker.js index 1a61639ce..2c6d0e696 100644 --- a/gosa-core/html/include/datepicker.js +++ b/gosa-core/html/include/datepicker.js @@ -407,7 +407,7 @@ DatePicker.prototype = { /* hack for buggy form elements layering in IE */ _wrap_in_iframe : function ( content ) { - return ( Prototype.Browser.IE ) ? "
" + content + "
" : content; + return ( Prototype.Browser.IE && msieversion() < 8 ) ? "
" + content + "
" : content; }, /** @@ -793,3 +793,15 @@ DatePicker.prototype = { $(this._id_datepicker_hdr).update('   '+ this.getMonthLocale(this._current_mon) +' '+ this._current_year +'   '); } }; + + +function msieversion() +{ + var ua = window.navigator.userAgent + var msie = ua.indexOf ( "MSIE " ) + if ( msie > 0 ) // If Internet Explorer, return version number + return parseInt (ua.substring (msie+5, ua.indexOf (".", msie ))) + else // If another browser, return 0 + return 0 +} + -- 2.30.2