You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2011/11/29 16:11:08 UTC
svn commit: r1207902 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: lofwyr
Date: Tue Nov 29 15:11:07 2011
New Revision: 1207902
URL: http://svn.apache.org/viewvc?rev=1207902&view=rev
Log:
use jQuery.browser
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1207902&r1=1207901&r2=1207902&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Tue Nov 29 15:11:07 2011
@@ -1295,7 +1295,7 @@ var Tobago = {
LOG.debug('replace position ' + position + ' with relative'); // @DEV_ONLY
element.style.position = 'relative';
}
- if (this.getBrowser().type == 'msie' && this.getBrowser().version < 7) {
+ if (jQuery.browser.msie && parseInt(jQuery.browser.version) <= 6) {
var iframe = document.createElement('IFRAME');
iframe.id = element.id + '-iframe-overlay';
iframe.style.backgroundColor = 'red';
@@ -1614,6 +1614,9 @@ var Tobago = {
// we need only an implementation in the IE6 file.
},
+ /**
+ * @deprecated Since 1.5.1, please use the jQuery.browser
+ */
getBrowser: function() {
if (!this.browser) {
var agent = navigator.userAgent.toLowerCase();
@@ -1754,7 +1757,7 @@ Tobago.In.prototype.setup = function() {
ctrl = Tobago.element(this.id);
Tobago.addBindEventListener(ctrl, 'change', this, 'checkMaxLength');
Tobago.addBindEventListener(ctrl, 'keypress', this, 'checkMaxLength');
- if (Tobago.getBrowser().type == 'msie') {
+ if (jQuery.browser.msie) {
Tobago.addBindEventListener(ctrl, 'paste', this, 'checkMaxLengthOnPaste');
}
}