summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3ecde4a)
raw | patch | inline | side by side (parent: 3ecde4a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Feb 2010 14:00:31 +0000 (14:00 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Feb 2010 14:00:31 +0000 (14:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15676 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/include/datepicker.js | patch | blob | history |
index 1a61639ceb0dae601bb79e86147e3ce80cdb56f3..2c6d0e6962ecfc31be0104c128a2ff885569145c 100644 (file)
/* hack for buggy form elements layering in IE */
_wrap_in_iframe : function ( content ) {
- return ( Prototype.Browser.IE ) ? "<div style='height:167px;width:185px;background-color:white;align:left'><iframe width='100%' height='100%' marginwidth='0' marginheight='0' frameborder='0' src='about:blank' style='filter:alpha(Opacity=50);'></iframe><div style='position:absolute;background-color:white;top:2px;left:2px;width:180px'>" + content + "</div></div>" : content;
+ return ( Prototype.Browser.IE && msieversion() < 8 ) ? "<div style='height:167px;width:185px;background-color:white;align:left'><iframe width='100%' height='100%' marginwidth='0' marginheight='0' frameborder='0' src='about:blank' style='filter:alpha(Opacity=50);'></iframe><div style='position:absolute;background-color:white;top:2px;left:2px;width:180px'>" + content + "</div></div>" : content;
},
/**
$(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
+}
+