Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
MooTools Browser.engine is deprecated (see #3994)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Apr 13, 2012
1 parent 8b62121 commit 69fd9f1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion plugins/mootools/mootao/Mootao-uncompressed.js
Expand Up @@ -166,4 +166,3 @@ Tips.Contao = new Class(
this.tip.setStyles(obj);
}
});

6 changes: 4 additions & 2 deletions plugins/mootools/stylect/js/stylect-uncompressed.js
Expand Up @@ -84,11 +84,13 @@ var Stylect =
div.removeClass('focused');
}).setStyle('opacity', 0);

Browser.webkit = (Browser.chrome || Browser.safari || navigator.userAgent.match(/(?:webkit|khtml)/i));

// Browser-specific adjustments
if (Browser.Engine.webkit) {
if (Browser.webkit) {
el.setStyle('margin-bottom', '4px');
}
if (Browser.Engine.webkit || Browser.Engine.trident) {
if (Browser.webkit || Browser.ie) {
div.setStyle('width', div.getStyle('width').toInt()-4);
}
});
Expand Down
2 changes: 1 addition & 1 deletion plugins/mootools/stylect/js/stylect.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions system/modules/backend/html/contao-uncompressed.js
Expand Up @@ -708,8 +708,8 @@ var Backend =
*/
openWindow: function(el, width, height) {
el.blur();
width = Browser.Engine.trident ? (width + 40) : (width + 17);
height = Browser.Engine.trident ? (height + 30) : (height + 17);
width = Browser.ie ? (width + 40) : (width + 17);
height = Browser.ie ? (height + 30) : (height + 17);
Backend.popupWindow = window.open(el.href, '', 'width='+width+',height='+height+',modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
},

Expand Down Expand Up @@ -1002,7 +1002,7 @@ var Backend =
var status = (textarea.getProperty('wrap') == 'off') ? 'soft' : 'off';
textarea.setProperty('wrap', status);

if (!Browser.Engine.trident) {
if (!Browser.ie) {
var v = textarea.value;
var n = textarea.clone();
n.setProperty('wrap', status);
Expand Down
2 changes: 1 addition & 1 deletion system/modules/backend/html/contao.js

Large diffs are not rendered by default.

0 comments on commit 69fd9f1

Please sign in to comment.