mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 02:18:41 +00:00
update javascript to ext 2.3
This commit is contained in:
parent
bf0218d785
commit
c2361f5865
4 changed files with 28897 additions and 25718 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Ext JS Library 2.2.1
|
* Ext JS Library 2.3.0
|
||||||
* Copyright(c) 2006-2009, Ext JS, LLC.
|
* Copyright(c) 2006-2009, Ext JS, LLC.
|
||||||
* licensing@extjs.com
|
* licensing@extjs.com
|
||||||
*
|
*
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p.contains && !Ext.isSafari) {
|
if (p.contains && !Ext.isWebKit) {
|
||||||
return p.contains(c);
|
return p.contains(c);
|
||||||
} else if (p.compareDocumentPosition) {
|
} else if (p.compareDocumentPosition) {
|
||||||
return !!(p.compareDocumentPosition(c) & 16);
|
return !!(p.compareDocumentPosition(c) & 16);
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
p = p.offsetParent;
|
p = p.offsetParent;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Ext.isSafari && hasAbsolute) {
|
if (Ext.isWebKit && hasAbsolute) {
|
||||||
x -= bd.offsetLeft;
|
x -= bd.offsetLeft;
|
||||||
y -= bd.offsetTop;
|
y -= bd.offsetTop;
|
||||||
}
|
}
|
||||||
|
@ -314,7 +314,7 @@
|
||||||
|
|
||||||
|
|
||||||
resolveTextNode: function(node) {
|
resolveTextNode: function(node) {
|
||||||
if (Ext.isSafari && node && 3 == node.nodeType) {
|
if (Ext.isWebKit && node && 3 == node.nodeType) {
|
||||||
return node.parentNode;
|
return node.parentNode;
|
||||||
} else {
|
} else {
|
||||||
return node;
|
return node;
|
||||||
|
@ -737,12 +737,9 @@
|
||||||
case 'select-multiple':
|
case 'select-multiple':
|
||||||
for (var j = 0; j < el.options.length; j++) {
|
for (var j = 0; j < el.options.length; j++) {
|
||||||
if (el.options[j].selected) {
|
if (el.options[j].selected) {
|
||||||
if (Ext.isIE) {
|
var opt = el.options[j],
|
||||||
data += encodeURIComponent(name) + '=' + encodeURIComponent(el.options[j].attributes['value'].specified ? el.options[j].value : el.options[j].text) + '&';
|
sel = (opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified) ? opt.value : opt.text;
|
||||||
}
|
data += encodeURIComponent(name) + '=' + encodeURIComponent(sel) + '&';
|
||||||
else {
|
|
||||||
data += encodeURIComponent(name) + '=' + encodeURIComponent(el.options[j].hasAttribute('value') ? el.options[j].value : el.options[j].text) + '&';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -1028,8 +1025,8 @@
|
||||||
obj.tId = o.tId;
|
obj.tId = o.tId;
|
||||||
obj.status = o.conn.status;
|
obj.status = o.conn.status;
|
||||||
obj.statusText = o.conn.statusText;
|
obj.statusText = o.conn.statusText;
|
||||||
obj.getResponseHeader = headerObj;
|
obj.getResponseHeader = function(header){return headerObj[header];};
|
||||||
obj.getAllResponseHeaders = headerStr;
|
obj.getAllResponseHeaders = function(){return headerStr};
|
||||||
obj.responseText = o.conn.responseText;
|
obj.responseText = o.conn.responseText;
|
||||||
obj.responseXML = o.conn.responseXML;
|
obj.responseXML = o.conn.responseXML;
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue