Author: olamy
Date: Wed Aug 22 11:17:05 2012
New Revision: 1375991
URL: http://svn.apache.org/viewvc?rev=1375991&view=rev
Log:
$.curCSS not anymore exists in jquery 1.8
Modified:
archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/jquery-ui-1.8.16.custom.min.js
Modified:
archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/jquery-ui-1.8.16.custom.min.js
URL:
http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/jquery-ui-1.8.16.custom.min.js?rev=1375991&r1=1375990&r2=1375991&view=diff
==============================================================================
---
archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/jquery-ui-1.8.16.custom.min.js
(original)
+++
archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/jquery-ui-1.8.16.custom.min.js
Wed Aug 22 11:17:05 2012
@@ -80,11 +80,11 @@ $.fn.extend({
var scrollParent;
if (($.browser.msie &&
(/(static|relative)/).test(this.css('position'))) ||
(/absolute/).test(this.css('position'))) {
scrollParent = this.parents().filter(function() {
- return
(/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) &&
(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));
+ return
(/(relative|absolute|fixed)/).test($.css(this,'position',1)) &&
(/(auto|scroll)/).test($.css(this,'overflow',1)+$.css(this,'overflow-y',1)+$.css(this,'overflow-x',1));
}).eq(0);
} else {
scrollParent = this.parents().filter(function() {
- return
(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));
+ return
(/(auto|scroll)/).test($.css(this,'overflow',1)+$.css(this,'overflow-y',1)+$.css(this,'overflow-x',1));
}).eq(0);
}
@@ -144,12 +144,12 @@ $.each( [ "Width", "Height" ], function(
function reduce( elem, size, border, margin ) {
$.each( side, function() {
- size -= parseFloat( $.curCSS( elem, "padding" + this,
true) ) || 0;
+ size -= parseFloat( $.css( elem, "padding" + this,
true) ) || 0;
if ( border ) {
- size -= parseFloat( $.curCSS( elem, "border" +
this + "Width", true) ) || 0;
+ size -= parseFloat( $.css( elem, "border" +
this + "Width", true) ) || 0;
}
if ( margin ) {
- size -= parseFloat( $.curCSS( elem, "margin" +
this, true) ) || 0;
+ size -= parseFloat( $.css( elem, "margin" +
this, true) ) || 0;
}
});
return size;
@@ -200,7 +200,7 @@ function focusable( element, isTabIndexN
function visible( element ) {
return !$( element ).parents().andSelf().filter(function() {
- return $.curCSS( this, "visibility" ) === "hidden" ||
+ return $.css( this, "visibility" ) === "hidden" ||
$.expr.filters.hidden( this );
}).length;
}
@@ -4126,7 +4126,7 @@ function getColor(elem, attr) {
var color;
do {
- color = $.curCSS(elem, attr);
+ color = $.css(elem, attr);
// Keep going until we find an element that has
color, or we hit the body
if ( color != '' && color != 'transparent' ||
$.nodeName(elem, "body") )
@@ -10089,12 +10089,12 @@ $.fn.position = function( options ) {
var elem = $( this ),
elemWidth = elem.outerWidth(),
elemHeight = elem.outerHeight(),
- marginLeft = parseInt( $.curCSS( this, "marginLeft",
true ) ) || 0,
- marginTop = parseInt( $.curCSS( this, "marginTop", true
) ) || 0,
+ marginLeft = parseInt( $.css( this, "marginLeft", true
) ) || 0,
+ marginTop = parseInt( $.css( this, "marginTop", true )
) || 0,
collisionWidth = elemWidth + marginLeft +
- ( parseInt( $.curCSS( this, "marginRight", true
) ) || 0 ),
+ ( parseInt( $.css( this, "marginRight", true )
) || 0 ),
collisionHeight = elemHeight + marginTop +
- ( parseInt( $.curCSS( this, "marginBottom",
true ) ) || 0 ),
+ ( parseInt( $.css( this, "marginBottom", true )
) || 0 ),
position = $.extend( {}, basePosition ),
collisionPosition;
@@ -10207,13 +10207,13 @@ $.ui.position = {
if ( !$.offset.setOffset ) {
$.offset.setOffset = function( elem, options ) {
// set position first, in-case top/left are set even on static
elem
- if ( /static/.test( $.curCSS( elem, "position" ) ) ) {
+ if ( /static/.test( $.css( elem, "position" ) ) ) {
elem.style.position = "relative";
}
var curElem = $( elem ),
curOffset = curElem.offset(),
- curTop = parseInt( $.curCSS( elem, "top", true ),
10 ) || 0,
- curLeft = parseInt( $.curCSS( elem, "left", true ),
10) || 0,
+ curTop = parseInt( $.css( elem, "top", true ), 10 )
|| 0,
+ curLeft = parseInt( $.css( elem, "left", true ), 10)
|| 0,
props = {
top: (options.top - curOffset.top) + curTop,
left: (options.left - curOffset.left) + curLeft