diff --git a/assets/js/ext/src/adapter/ext-base-dom-more.js b/assets/js/ext/src/adapter/ext-base-dom-more.js deleted file mode 100644 index f684ddf..0000000 --- a/assets/js/ext/src/adapter/ext-base-dom-more.js +++ /dev/null @@ -1,9 +0,0 @@ -/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -Ext.lib.Dom.getRegion = function(el) { - return Ext.lib.Region.getRegion(el); -}; \ No newline at end of file diff --git a/assets/js/ext/src/adapter/jquery-bridge.js b/assets/js/ext/src/adapter/jquery-bridge.js deleted file mode 100644 index bbffceb..0000000 --- a/assets/js/ext/src/adapter/jquery-bridge.js +++ /dev/null @@ -1,579 +0,0 @@ -/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -if(typeof jQuery == "undefined"){ - throw "Unable to load Ext, jQuery not found."; -} - -(function(){ -var libFlyweight; - -Ext.lib.Dom = { - getViewWidth : function(full){ - // jQuery doesn't report full window size on document query, so max both - return full ? Math.max(jQuery(document).width(),jQuery(window).width()) : jQuery(window).width(); - }, - - getViewHeight : function(full){ - // jQuery doesn't report full window size on document query, so max both - return full ? Math.max(jQuery(document).height(),jQuery(window).height()) : jQuery(window).height(); - }, - - isAncestor : function(p, c){ - var ret = false; - - p = Ext.getDom(p); - c = Ext.getDom(c); - if (p && c) { - if (p.contains) { - return p.contains(c); - } else if (p.compareDocumentPosition) { - return !!(p.compareDocumentPosition(c) & 16); - } else { - while (c = c.parentNode) { - ret = c == p || ret; - } - } - } - return ret; - }, - - getRegion : function(el){ - return Ext.lib.Region.getRegion(el); - }, - - ////////////////////////////////////////////////////////////////////////////////////// - // Use of jQuery.offset() removed to promote consistent behavior across libs. - // JVS 05/23/07 - ////////////////////////////////////////////////////////////////////////////////////// - - getY : function(el){ - return this.getXY(el)[1]; - }, - - getX : function(el){ - return this.getXY(el)[0]; - }, - - getXY : function(el) { - var p, pe, b, scroll, bd = (document.body || document.documentElement); - el = Ext.getDom(el); - - if(el == bd){ - return [0, 0]; - } - - if (el.getBoundingClientRect) { - b = el.getBoundingClientRect(); - scroll = fly(document).getScroll(); - return [Math.round(b.left + scroll.left), Math.round(b.top + scroll.top)]; - } - var x = 0, y = 0; - - p = el; - - var hasAbsolute = fly(el).getStyle("position") == "absolute"; - - while (p) { - - x += p.offsetLeft; - y += p.offsetTop; - - if (!hasAbsolute && fly(p).getStyle("position") == "absolute") { - hasAbsolute = true; - } - - if (Ext.isGecko) { - pe = fly(p); - - var bt = parseInt(pe.getStyle("borderTopWidth"), 10) || 0; - var bl = parseInt(pe.getStyle("borderLeftWidth"), 10) || 0; - - - x += bl; - y += bt; - - - if (p != el && pe.getStyle('overflow') != 'visible') { - x += bl; - y += bt; - } - } - p = p.offsetParent; - } - - if (Ext.isSafari && hasAbsolute) { - x -= bd.offsetLeft; - y -= bd.offsetTop; - } - - if (Ext.isGecko && !hasAbsolute) { - var dbd = fly(bd); - x += parseInt(dbd.getStyle("borderLeftWidth"), 10) || 0; - y += parseInt(dbd.getStyle("borderTopWidth"), 10) || 0; - } - - p = el.parentNode; - while (p && p != bd) { - if (!Ext.isOpera || (p.tagName != 'TR' && fly(p).getStyle("display") != "inline")) { - x -= p.scrollLeft; - y -= p.scrollTop; - } - p = p.parentNode; - } - return [x, y]; - }, - - setXY : function(el, xy){ - el = Ext.fly(el, '_setXY'); - el.position(); - var pts = el.translatePoints(xy); - if(xy[0] !== false){ - el.dom.style.left = pts.left + "px"; - } - if(xy[1] !== false){ - el.dom.style.top = pts.top + "px"; - } - }, - - setX : function(el, x){ - this.setXY(el, [x, false]); - }, - - setY : function(el, y){ - this.setXY(el, [false, y]); - } -}; - -// all lib flyweight calls use their own flyweight to prevent collisions with developer flyweights -function fly(el){ - if(!libFlyweight){ - libFlyweight = new Ext.Element.Flyweight(); - } - libFlyweight.dom = el; - return libFlyweight; -} -Ext.lib.Event = { - getPageX : function(e){ - e = e.browserEvent || e; - return e.pageX; - }, - - getPageY : function(e){ - e = e.browserEvent || e; - return e.pageY; - }, - - getXY : function(e){ - e = e.browserEvent || e; - return [e.pageX, e.pageY]; - }, - - getTarget : function(e){ - return e.target; - }, - - // all Ext events will go through event manager which provides scoping - on : function(el, eventName, fn, scope, override){ - jQuery(el).bind(eventName, fn); - }, - - un : function(el, eventName, fn){ - jQuery(el).unbind(eventName, fn); - }, - - purgeElement : function(el){ - jQuery(el).unbind(); - }, - - preventDefault : function(e){ - e = e.browserEvent || e; - if(e.preventDefault){ - e.preventDefault(); - }else{ - e.returnValue = false; - } - }, - - stopPropagation : function(e){ - e = e.browserEvent || e; - if(e.stopPropagation){ - e.stopPropagation(); - }else{ - e.cancelBubble = true; - } - }, - - stopEvent : function(e){ - this.preventDefault(e); - this.stopPropagation(e); - }, - - onAvailable : function(id, fn, scope){ - var start = new Date(); - var f = function(){ - if(start.getElapsed() > 10000){ - clearInterval(iid); - } - var el = document.getElementById(id); - if(el){ - clearInterval(iid); - fn.call(scope||window, el); - } - }; - var iid = setInterval(f, 50); - }, - - resolveTextNode: Ext.isGecko ? function(node){ - if(!node){ - return; - } - var s = HTMLElement.prototype.toString.call(node); - if(s == '[xpconnect wrapped native prototype]' || s == '[object XULElement]'){ - return; - } - return node.nodeType == 3 ? node.parentNode : node; - } : function(node){ - return node && node.nodeType == 3 ? node.parentNode : node; - }, - - getRelatedTarget: function(ev) { - ev = ev.browserEvent || ev; - var t = ev.relatedTarget; - if (!t) { - if (ev.type == "mouseout") { - t = ev.toElement; - } else if (ev.type == "mouseover") { - t = ev.fromElement; - } - } - - return this.resolveTextNode(t); - } -}; - -Ext.lib.Ajax = function(){ - var createComplete = function(cb){ - return function(xhr, status){ - if((status == 'error' || status == 'timeout') && cb.failure){ - cb.failure.call(cb.scope||window, createResponse(cb, xhr)); - }else if(cb.success){ - cb.success.call(cb.scope||window, createResponse(cb, xhr)); - } - }; - }; - - var createResponse = function(cb, xhr){ - var headerObj = {}, - headerStr, - t, - s; - - try { - headerStr = xhr.getAllResponseHeaders(); - Ext.each(headerStr.replace(/\r\n/g, '\n').split('\n'), function(v){ - t = v.indexOf(':'); - if(t >= 0){ - s = v.substr(0, t).toLowerCase(); - if(v.charAt(t + 1) == ' '){ - ++t; - } - headerObj[s] = v.substr(t + 1); - } - }); - } catch(e) {} - - return { - responseText: xhr.responseText, - responseXML : xhr.responseXML, - argument: cb.argument, - status: xhr.status, - statusText: xhr.statusText, - getResponseHeader : function(header){ - return headerObj[header.toLowerCase()]; - }, - getAllResponseHeaders : function(){ - return headerStr; - } - }; - }; - return { - request : function(method, uri, cb, data, options){ - var o = { - type: method, - url: uri, - data: data, - timeout: cb.timeout, - complete: createComplete(cb) - }; - - if(options){ - var hs = options.headers; - if(options.xmlData){ - o.data = options.xmlData; - o.processData = false; - o.type = (method ? method : (options.method ? options.method : 'POST')); - if (!hs || !hs['Content-Type']){ - o.contentType = 'text/xml'; - } - }else if(options.jsonData){ - o.data = typeof options.jsonData == 'object' ? Ext.encode(options.jsonData) : options.jsonData; - o.processData = false; - o.type = (method ? method : (options.method ? options.method : 'POST')); - if (!hs || !hs['Content-Type']){ - o.contentType = 'application/json'; - } - } - if(hs){ - o.beforeSend = function(xhr){ - for (var h in hs) { - if (hs.hasOwnProperty(h)) { - xhr.setRequestHeader(h, hs[h]); - } - } - }; - } - } - jQuery.ajax(o); - }, - - formRequest : function(form, uri, cb, data, isUpload, sslUri){ - jQuery.ajax({ - type: Ext.getDom(form).method ||'POST', - url: uri, - data: jQuery(form).serialize()+(data?'&'+data:''), - timeout: cb.timeout, - complete: createComplete(cb) - }); - }, - - isCallInProgress : function(trans){ - return false; - }, - - abort : function(trans){ - return false; - }, - - serializeForm : function(form){ - return jQuery(form.dom||form).serialize(); - } - }; -}(); - -Ext.lib.Anim = function(){ - var createAnim = function(cb, scope){ - var animated = true; - return { - stop : function(skipToLast){ - // do nothing - }, - - isAnimated : function(){ - return animated; - }, - - proxyCallback : function(){ - animated = false; - Ext.callback(cb, scope); - } - }; - }; - return { - scroll : function(el, args, duration, easing, cb, scope){ - // scroll anim not supported so just scroll immediately - var anim = createAnim(cb, scope); - el = Ext.getDom(el); - if(typeof args.scroll.to[0] == 'number'){ - el.scrollLeft = args.scroll.to[0]; - } - if(typeof args.scroll.to[1] == 'number'){ - el.scrollTop = args.scroll.to[1]; - } - anim.proxyCallback(); - return anim; - }, - - motion : function(el, args, duration, easing, cb, scope){ - return this.run(el, args, duration, easing, cb, scope); - }, - - color : function(el, args, duration, easing, cb, scope){ - // color anim not supported, so execute callback immediately - var anim = createAnim(cb, scope); - anim.proxyCallback(); - return anim; - }, - - run : function(el, args, duration, easing, cb, scope, type){ - var anim = createAnim(cb, scope), e = Ext.fly(el, '_animrun'); - var o = {}; - for(var k in args){ - switch(k){ // jquery doesn't support, so convert - case 'points': - var by, pts; - e.position(); - if(by = args.points.by){ - var xy = e.getXY(); - pts = e.translatePoints([xy[0]+by[0], xy[1]+by[1]]); - }else{ - pts = e.translatePoints(args.points.to); - } - o.left = pts.left; - o.top = pts.top; - if(!parseInt(e.getStyle('left'), 10)){ // auto bug - e.setLeft(0); - } - if(!parseInt(e.getStyle('top'), 10)){ - e.setTop(0); - } - if(args.points.from){ - e.setXY(args.points.from); - } - break; - case 'width': - o.width = args.width.to; - if (args.width.from) - e.setWidth(args.width.from); - break; - case 'height': - o.height = args.height.to; - if (args.height.from) - e.setHeight(args.height.from); - break; - case 'opacity': - o.opacity = args.opacity.to; - if (args.opacity.from) - e.setOpacity(args.opacity.from); - break; - case 'left': - o.left = args.left.to; - if (args.left.from) - e.setLeft(args.left.from); - break; - case 'top': - o.top = args.top.to; - if (args.top.from) - e.setTop(args.top.from); - break; - // jQuery can't handle callback, scope, and xy arguments, so break here - case 'callback': - case 'scope': - case 'xy': - break; - - default: - o[k] = args[k].to; - if (args[k].from) - e.setStyle(k, args[k].from); - break; - } - } - // TODO: find out about easing plug in? - jQuery(el).animate(o, duration*1000, undefined, anim.proxyCallback); - return anim; - } - }; -}(); - - -Ext.lib.Region = function(t, r, b, l) { - this.top = t; - this[1] = t; - this.right = r; - this.bottom = b; - this.left = l; - this[0] = l; -}; - -Ext.lib.Region.prototype = { - contains : function(region) { - return ( region.left >= this.left && - region.right <= this.right && - region.top >= this.top && - region.bottom <= this.bottom ); - - }, - - getArea : function() { - return ( (this.bottom - this.top) * (this.right - this.left) ); - }, - - intersect : function(region) { - var t = Math.max( this.top, region.top ); - var r = Math.min( this.right, region.right ); - var b = Math.min( this.bottom, region.bottom ); - var l = Math.max( this.left, region.left ); - - if (b >= t && r >= l) { - return new Ext.lib.Region(t, r, b, l); - } else { - return null; - } - }, - union : function(region) { - var t = Math.min( this.top, region.top ); - var r = Math.max( this.right, region.right ); - var b = Math.max( this.bottom, region.bottom ); - var l = Math.min( this.left, region.left ); - - return new Ext.lib.Region(t, r, b, l); - }, - - constrainTo : function(r) { - this.top = this.top.constrain(r.top, r.bottom); - this.bottom = this.bottom.constrain(r.top, r.bottom); - this.left = this.left.constrain(r.left, r.right); - this.right = this.right.constrain(r.left, r.right); - return this; - }, - - adjust : function(t, l, b, r){ - this.top += t; - this.left += l; - this.right += r; - this.bottom += b; - return this; - } -}; - -Ext.lib.Region.getRegion = function(el) { - var p = Ext.lib.Dom.getXY(el); - - var t = p[1]; - var r = p[0] + el.offsetWidth; - var b = p[1] + el.offsetHeight; - var l = p[0]; - - return new Ext.lib.Region(t, r, b, l); -}; - -Ext.lib.Point = function(x, y) { - if (Ext.isArray(x)) { - y = x[1]; - x = x[0]; - } - this.x = this.right = this.left = this[0] = x; - this.y = this.top = this.bottom = this[1] = y; -}; - -Ext.lib.Point.prototype = new Ext.lib.Region(); - -// prevent IE leaks -if(Ext.isIE) { - function fnCleanUp() { - var p = Function.prototype; - delete p.createSequence; - delete p.defer; - delete p.createDelegate; - delete p.createCallback; - delete p.createInterceptor; - - window.detachEvent("onunload", fnCleanUp); - } - window.attachEvent("onunload", fnCleanUp); -} -})(); \ No newline at end of file diff --git a/assets/js/ext/src/adapter/prototype-bridge.js b/assets/js/ext/src/adapter/prototype-bridge.js deleted file mode 100644 index ce0c708..0000000 --- a/assets/js/ext/src/adapter/prototype-bridge.js +++ /dev/null @@ -1,608 +0,0 @@ -/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -(function(){ - -var libFlyweight, - version = Prototype.Version.split('.'), - mouseEnterSupported = (parseInt(version[0], 10) >= 2) || (parseInt(version[1], 10) >= 7) || (parseInt(version[2], 10) >= 1), - mouseCache = {}, - elContains = function(parent, child) { - if(parent && parent.firstChild){ - while(child) { - if(child === parent) { - return true; - } - child = child.parentNode; - if(child && (child.nodeType != 1)) { - child = null; - } - } - } - return false; - }, - checkRelatedTarget = function(e) { - return !elContains(e.currentTarget, Ext.lib.Event.getRelatedTarget(e)); - }; - -Ext.lib.Dom = { - getViewWidth : function(full){ - return full ? this.getDocumentWidth() : this.getViewportWidth(); - }, - - getViewHeight : function(full){ - return full ? this.getDocumentHeight() : this.getViewportHeight(); - }, - - getDocumentHeight: function() { // missing from prototype? - var scrollHeight = (document.compatMode != "CSS1Compat") ? document.body.scrollHeight : document.documentElement.scrollHeight; - return Math.max(scrollHeight, this.getViewportHeight()); - }, - - getDocumentWidth: function() { // missing from prototype? - var scrollWidth = (document.compatMode != "CSS1Compat") ? document.body.scrollWidth : document.documentElement.scrollWidth; - return Math.max(scrollWidth, this.getViewportWidth()); - }, - - getViewportHeight: function() { // missing from prototype? - var height = self.innerHeight; - var mode = document.compatMode; - - if ( (mode || Ext.isIE) && !Ext.isOpera ) { - height = (mode == "CSS1Compat") ? - document.documentElement.clientHeight : // Standards - document.body.clientHeight; // Quirks - } - - return height; - }, - - getViewportWidth: function() { // missing from prototype? - var width = self.innerWidth; // Safari - var mode = document.compatMode; - - if (mode || Ext.isIE) { // IE, Gecko, Opera - width = (mode == "CSS1Compat") ? - document.documentElement.clientWidth : // Standards - document.body.clientWidth; // Quirks - } - return width; - }, - - isAncestor : function(p, c){ // missing from prototype? - var ret = false; - - p = Ext.getDom(p); - c = Ext.getDom(c); - if (p && c) { - if (p.contains) { - return p.contains(c); - } else if (p.compareDocumentPosition) { - return !!(p.compareDocumentPosition(c) & 16); - } else { - while (c = c.parentNode) { - ret = c == p || ret; - } - } - } - return ret; - }, - - getRegion : function(el){ - return Ext.lib.Region.getRegion(el); - }, - - getY : function(el){ - return this.getXY(el)[1]; - }, - - getX : function(el){ - return this.getXY(el)[0]; - }, - - getXY : function(el){ // this initially used Position.cumulativeOffset but it is not accurate enough - var p, pe, b, scroll, bd = (document.body || document.documentElement); - el = Ext.getDom(el); - - if(el == bd){ - return [0, 0]; - } - - if (el.getBoundingClientRect) { - b = el.getBoundingClientRect(); - scroll = fly(document).getScroll(); - return [Math.round(b.left + scroll.left), Math.round(b.top + scroll.top)]; - } - var x = 0, y = 0; - - p = el; - - var hasAbsolute = fly(el).getStyle("position") == "absolute"; - - while (p) { - - x += p.offsetLeft; - y += p.offsetTop; - - if (!hasAbsolute && fly(p).getStyle("position") == "absolute") { - hasAbsolute = true; - } - - if (Ext.isGecko) { - pe = fly(p); - - var bt = parseInt(pe.getStyle("borderTopWidth"), 10) || 0; - var bl = parseInt(pe.getStyle("borderLeftWidth"), 10) || 0; - - - x += bl; - y += bt; - - - if (p != el && pe.getStyle('overflow') != 'visible') { - x += bl; - y += bt; - } - } - p = p.offsetParent; - } - - if (Ext.isSafari && hasAbsolute) { - x -= bd.offsetLeft; - y -= bd.offsetTop; - } - - if (Ext.isGecko && !hasAbsolute) { - var dbd = fly(bd); - x += parseInt(dbd.getStyle("borderLeftWidth"), 10) || 0; - y += parseInt(dbd.getStyle("borderTopWidth"), 10) || 0; - } - - p = el.parentNode; - while (p && p != bd) { - if (!Ext.isOpera || (p.tagName != 'TR' && fly(p).getStyle("display") != "inline")) { - x -= p.scrollLeft; - y -= p.scrollTop; - } - p = p.parentNode; - } - return [x, y]; - }, - - setXY : function(el, xy){ // this initially used Position.cumulativeOffset but it is not accurate enough - el = Ext.fly(el, '_setXY'); - el.position(); - var pts = el.translatePoints(xy); - if(xy[0] !== false){ - el.dom.style.left = pts.left + "px"; - } - if(xy[1] !== false){ - el.dom.style.top = pts.top + "px"; - } - }, - - setX : function(el, x){ - this.setXY(el, [x, false]); - }, - - setY : function(el, y){ - this.setXY(el, [false, y]); - } -}; - -Ext.lib.Event = { - getPageX : function(e){ - return Event.pointerX(e.browserEvent || e); - }, - - getPageY : function(e){ - return Event.pointerY(e.browserEvent || e); - }, - - getXY : function(e){ - e = e.browserEvent || e; - return [Event.pointerX(e), Event.pointerY(e)]; - }, - - getTarget : function(e){ - return Event.element(e.browserEvent || e); - }, - - resolveTextNode: Ext.isGecko ? function(node){ - if(!node){ - return; - } - var s = HTMLElement.prototype.toString.call(node); - if(s == '[xpconnect wrapped native prototype]' || s == '[object XULElement]'){ - return; - } - return node.nodeType == 3 ? node.parentNode : node; - } : function(node){ - return node && node.nodeType == 3 ? node.parentNode : node; - }, - - getRelatedTarget: function(ev) { // missing from prototype? - ev = ev.browserEvent || ev; - var t = ev.relatedTarget; - if (!t) { - if (ev.type == "mouseout") { - t = ev.toElement; - } else if (ev.type == "mouseover") { - t = ev.fromElement; - } - } - - return this.resolveTextNode(t); - }, - - on : function(el, eventName, fn){ - if((eventName == 'mouseenter' || eventName == 'mouseleave') && !mouseEnterSupported){ - var item = mouseCache[el.id] || (mouseCache[el.id] = {}); - item[eventName] = fn; - fn = fn.createInterceptor(checkRelatedTarget); - eventName = (eventName == 'mouseenter') ? 'mouseover' : 'mouseout'; - } - Event.observe(el, eventName, fn, false); - }, - - un : function(el, eventName, fn){ - if((eventName == 'mouseenter' || eventName == 'mouseleave') && !mouseEnterSupported){ - var item = mouseCache[el.id], - ev = item && item[eventName]; - - if(ev){ - fn = ev.fn; - delete item[eventName]; - eventName = (eventName == 'mouseenter') ? 'mouseover' : 'mouseout'; - } - } - Event.stopObserving(el, eventName, fn, false); - }, - - purgeElement : function(el){ - // no equiv? - }, - - preventDefault : function(e){ // missing from prototype? - e = e.browserEvent || e; - if(e.preventDefault) { - e.preventDefault(); - } else { - e.returnValue = false; - } - }, - - stopPropagation : function(e){ // missing from prototype? - e = e.browserEvent || e; - if(e.stopPropagation) { - e.stopPropagation(); - } else { - e.cancelBubble = true; - } - }, - - stopEvent : function(e){ - Event.stop(e.browserEvent || e); - }, - - onAvailable : function(id, fn, scope){ // no equiv - var start = new Date(), iid; - var f = function(){ - if(start.getElapsed() > 10000){ - clearInterval(iid); - } - var el = document.getElementById(id); - if(el){ - clearInterval(iid); - fn.call(scope||window, el); - } - }; - iid = setInterval(f, 50); - } -}; - -Ext.lib.Ajax = function(){ - var createSuccess = function(cb){ - return cb.success ? function(xhr){ - cb.success.call(cb.scope||window, createResponse(cb, xhr)); - } : Ext.emptyFn; - }; - var createFailure = function(cb){ - return cb.failure ? function(xhr){ - cb.failure.call(cb.scope||window, createResponse(cb, xhr)); - } : Ext.emptyFn; - }; - var createResponse = function(cb, xhr){ - var headerObj = {}, - headerStr, - t, - s; - - try { - headerStr = xhr.getAllResponseHeaders(); - Ext.each(headerStr.replace(/\r\n/g, '\n').split('\n'), function(v){ - t = v.indexOf(':'); - if(t >= 0){ - s = v.substr(0, t).toLowerCase(); - if(v.charAt(t + 1) == ' '){ - ++t; - } - headerObj[s] = v.substr(t + 1); - } - }); - } catch(e) {} - - return { - responseText: xhr.responseText, - responseXML : xhr.responseXML, - argument: cb.argument, - status: xhr.status, - statusText: xhr.statusText, - getResponseHeader : function(header){ - return headerObj[header.toLowerCase()]; - }, - getAllResponseHeaders : function(){ - return headerStr; - } - }; - }; - return { - request : function(method, uri, cb, data, options){ - var o = { - method: method, - parameters: data || '', - timeout: cb.timeout, - onSuccess: createSuccess(cb), - onFailure: createFailure(cb) - }; - if(options){ - var hs = options.headers; - if(hs){ - o.requestHeaders = hs; - } - if(options.xmlData){ - method = (method ? method : (options.method ? options.method : 'POST')); - if (!hs || !hs['Content-Type']){ - o.contentType = 'text/xml'; - } - o.postBody = options.xmlData; - delete o.parameters; - } - if(options.jsonData){ - method = (method ? method : (options.method ? options.method : 'POST')); - if (!hs || !hs['Content-Type']){ - o.contentType = 'application/json'; - } - o.postBody = typeof options.jsonData == 'object' ? Ext.encode(options.jsonData) : options.jsonData; - delete o.parameters; - } - } - new Ajax.Request(uri, o); - }, - - formRequest : function(form, uri, cb, data, isUpload, sslUri){ - new Ajax.Request(uri, { - method: Ext.getDom(form).method ||'POST', - parameters: Form.serialize(form)+(data?'&'+data:''), - timeout: cb.timeout, - onSuccess: createSuccess(cb), - onFailure: createFailure(cb) - }); - }, - - isCallInProgress : function(trans){ - return false; - }, - - abort : function(trans){ - return false; - }, - - serializeForm : function(form){ - return Form.serialize(form.dom||form); - } - }; -}(); - - -Ext.lib.Anim = function(){ - - var easings = { - easeOut: function(pos) { - return 1-Math.pow(1-pos,2); - }, - easeIn: function(pos) { - return 1-Math.pow(1-pos,2); - } - }; - var createAnim = function(cb, scope){ - return { - stop : function(skipToLast){ - this.effect.cancel(); - }, - - isAnimated : function(){ - return this.effect.state == 'running'; - }, - - proxyCallback : function(){ - Ext.callback(cb, scope); - } - }; - }; - return { - scroll : function(el, args, duration, easing, cb, scope){ - // not supported so scroll immediately? - var anim = createAnim(cb, scope); - el = Ext.getDom(el); - if(typeof args.scroll.to[0] == 'number'){ - el.scrollLeft = args.scroll.to[0]; - } - if(typeof args.scroll.to[1] == 'number'){ - el.scrollTop = args.scroll.to[1]; - } - anim.proxyCallback(); - return anim; - }, - - motion : function(el, args, duration, easing, cb, scope){ - return this.run(el, args, duration, easing, cb, scope); - }, - - color : function(el, args, duration, easing, cb, scope){ - return this.run(el, args, duration, easing, cb, scope); - }, - - run : function(el, args, duration, easing, cb, scope, type){ - var o = {}; - for(var k in args){ - switch(k){ // scriptaculous doesn't support, so convert these - case 'points': - var by, pts, e = Ext.fly(el, '_animrun'); - e.position(); - if(by = args.points.by){ - var xy = e.getXY(); - pts = e.translatePoints([xy[0]+by[0], xy[1]+by[1]]); - }else{ - pts = e.translatePoints(args.points.to); - } - o.left = pts.left+'px'; - o.top = pts.top+'px'; - break; - case 'width': - o.width = args.width.to+'px'; - break; - case 'height': - o.height = args.height.to+'px'; - break; - case 'opacity': - o.opacity = String(args.opacity.to); - break; - default: - o[k] = String(args[k].to); - break; - } - } - var anim = createAnim(cb, scope); - anim.effect = new Effect.Morph(Ext.id(el), { - duration: duration, - afterFinish: anim.proxyCallback, - transition: easings[easing] || Effect.Transitions.linear, - style: o - }); - return anim; - } - }; -}(); - - -// all lib flyweight calls use their own flyweight to prevent collisions with developer flyweights -function fly(el){ - if(!libFlyweight){ - libFlyweight = new Ext.Element.Flyweight(); - } - libFlyweight.dom = el; - return libFlyweight; -} - -Ext.lib.Region = function(t, r, b, l) { - this.top = t; - this[1] = t; - this.right = r; - this.bottom = b; - this.left = l; - this[0] = l; -}; - -Ext.lib.Region.prototype = { - contains : function(region) { - return ( region.left >= this.left && - region.right <= this.right && - region.top >= this.top && - region.bottom <= this.bottom ); - - }, - - getArea : function() { - return ( (this.bottom - this.top) * (this.right - this.left) ); - }, - - intersect : function(region) { - var t = Math.max( this.top, region.top ); - var r = Math.min( this.right, region.right ); - var b = Math.min( this.bottom, region.bottom ); - var l = Math.max( this.left, region.left ); - - if (b >= t && r >= l) { - return new Ext.lib.Region(t, r, b, l); - } else { - return null; - } - }, - union : function(region) { - var t = Math.min( this.top, region.top ); - var r = Math.max( this.right, region.right ); - var b = Math.max( this.bottom, region.bottom ); - var l = Math.min( this.left, region.left ); - - return new Ext.lib.Region(t, r, b, l); - }, - - constrainTo : function(r) { - this.top = this.top.constrain(r.top, r.bottom); - this.bottom = this.bottom.constrain(r.top, r.bottom); - this.left = this.left.constrain(r.left, r.right); - this.right = this.right.constrain(r.left, r.right); - return this; - }, - - adjust : function(t, l, b, r){ - this.top += t; - this.left += l; - this.right += r; - this.bottom += b; - return this; - } -}; - -Ext.lib.Region.getRegion = function(el) { - var p = Ext.lib.Dom.getXY(el); - - var t = p[1]; - var r = p[0] + el.offsetWidth; - var b = p[1] + el.offsetHeight; - var l = p[0]; - - return new Ext.lib.Region(t, r, b, l); -}; - -Ext.lib.Point = function(x, y) { - if (Ext.isArray(x)) { - y = x[1]; - x = x[0]; - } - this.x = this.right = this.left = this[0] = x; - this.y = this.top = this.bottom = this[1] = y; -}; - -Ext.lib.Point.prototype = new Ext.lib.Region(); - - -// prevent IE leaks -if(Ext.isIE) { - function fnCleanUp() { - var p = Function.prototype; - delete p.createSequence; - delete p.defer; - delete p.createDelegate; - delete p.createCallback; - delete p.createInterceptor; - - window.detachEvent("onunload", fnCleanUp); - } - window.attachEvent("onunload", fnCleanUp); -} -})(); \ No newline at end of file diff --git a/assets/js/ext/src/adapter/yui-bridge.js b/assets/js/ext/src/adapter/yui-bridge.js deleted file mode 100644 index e790ea3..0000000 --- a/assets/js/ext/src/adapter/yui-bridge.js +++ /dev/null @@ -1,374 +0,0 @@ -/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -if(typeof YAHOO == "undefined"){ - throw "Unable to load Ext, core YUI utilities (yahoo, dom, event) not found."; -} - -(function(){ - var E = YAHOO.util.Event, - D = YAHOO.util.Dom, - CN = YAHOO.util.Connect, - ES = YAHOO.util.Easing, - A = YAHOO.util.Anim, - libFlyweight, - version = YAHOO.env.getVersion('yahoo').version.split('.'), - mouseEnterSupported = parseInt(version[0], 10) >= 3, - mouseCache = {}, - elContains = function(parent, child){ - if(parent && parent.firstChild){ - while(child){ - if(child === parent){ - return true; - } - child = child.parentNode; - if(child && (child.nodeType != 1)){ - child = null; - } - } - } - return false; - }, checkRelatedTarget = function(e){ - return !elContains(e.currentTarget, Ext.lib.Event.getRelatedTarget(e)); - }; - -Ext.lib.Dom = { - getViewWidth : function(full){ - return full ? D.getDocumentWidth() : D.getViewportWidth(); - }, - - getViewHeight : function(full){ - return full ? D.getDocumentHeight() : D.getViewportHeight(); - }, - - isAncestor : function(haystack, needle){ - return D.isAncestor(haystack, needle); - }, - - getRegion : function(el){ - return D.getRegion(el); - }, - - getY : function(el){ - return this.getXY(el)[1]; - }, - - getX : function(el){ - return this.getXY(el)[0]; - }, - - // original version based on YahooUI getXY - // this version fixes several issues in Safari and FF - // and boosts performance by removing the batch overhead, repetitive dom lookups and array index calls - getXY : function(el){ - var p, pe, b, scroll, bd = (document.body || document.documentElement); - el = Ext.getDom(el); - - if(el == bd){ - return [0, 0]; - } - - if (el.getBoundingClientRect) { - b = el.getBoundingClientRect(); - scroll = fly(document).getScroll(); - return [Math.round(b.left + scroll.left), Math.round(b.top + scroll.top)]; - } - var x = 0, y = 0; - - p = el; - - var hasAbsolute = fly(el).getStyle("position") == "absolute"; - - while (p) { - - x += p.offsetLeft; - y += p.offsetTop; - - if (!hasAbsolute && fly(p).getStyle("position") == "absolute") { - hasAbsolute = true; - } - - if (Ext.isGecko) { - pe = fly(p); - - var bt = parseInt(pe.getStyle("borderTopWidth"), 10) || 0; - var bl = parseInt(pe.getStyle("borderLeftWidth"), 10) || 0; - - - x += bl; - y += bt; - - - if (p != el && pe.getStyle('overflow') != 'visible') { - x += bl; - y += bt; - } - } - p = p.offsetParent; - } - - if (Ext.isSafari && hasAbsolute) { - x -= bd.offsetLeft; - y -= bd.offsetTop; - } - - if (Ext.isGecko && !hasAbsolute) { - var dbd = fly(bd); - x += parseInt(dbd.getStyle("borderLeftWidth"), 10) || 0; - y += parseInt(dbd.getStyle("borderTopWidth"), 10) || 0; - } - - p = el.parentNode; - while (p && p != bd) { - if (!Ext.isOpera || (p.tagName != 'TR' && fly(p).getStyle("display") != "inline")) { - x -= p.scrollLeft; - y -= p.scrollTop; - } - p = p.parentNode; - } - return [x, y]; - }, - - setXY : function(el, xy){ - el = Ext.fly(el, '_setXY'); - el.position(); - var pts = el.translatePoints(xy); - if(xy[0] !== false){ - el.dom.style.left = pts.left + "px"; - } - if(xy[1] !== false){ - el.dom.style.top = pts.top + "px"; - } - }, - - setX : function(el, x){ - this.setXY(el, [x, false]); - }, - - setY : function(el, y){ - this.setXY(el, [false, y]); - } -}; - -Ext.lib.Event = { - getPageX : function(e){ - return E.getPageX(e.browserEvent || e); - }, - - getPageY : function(e){ - return E.getPageY(e.browserEvent || e); - }, - - getXY : function(e){ - return E.getXY(e.browserEvent || e); - }, - - getTarget : function(e){ - return E.getTarget(e.browserEvent || e); - }, - - getRelatedTarget : function(e){ - return E.getRelatedTarget(e.browserEvent || e); - }, - - on : function(el, eventName, fn, scope, override){ - if((eventName == 'mouseenter' || eventName == 'mouseleave') && !mouseEnterSupported){ - var item = mouseCache[el.id] || (mouseCache[el.id] = {}); - item[eventName] = fn; - fn = fn.createInterceptor(checkRelatedTarget); - eventName = (eventName == 'mouseenter') ? 'mouseover' : 'mouseout'; - } - E.on(el, eventName, fn, scope, override); - }, - - un : function(el, eventName, fn){ - if((eventName == 'mouseenter' || eventName == 'mouseleave') && !mouseEnterSupported){ - var item = mouseCache[el.id], - ev = item && item[eventName]; - - if(ev){ - fn = ev.fn; - delete item[eventName]; - eventName = (eventName == 'mouseenter') ? 'mouseover' : 'mouseout'; - } - } - E.removeListener(el, eventName, fn);; - }, - - purgeElement : function(el){ - E.purgeElement(el); - }, - - preventDefault : function(e){ - E.preventDefault(e.browserEvent || e); - }, - - stopPropagation : function(e){ - E.stopPropagation(e.browserEvent || e); - }, - - stopEvent : function(e){ - E.stopEvent(e.browserEvent || e); - }, - - onAvailable : function(el, fn, scope, override){ - return E.onAvailable(el, fn, scope, override); - } -}; - -Ext.lib.Ajax = { - request : function(method, uri, cb, data, options){ - if(options){ - var hs = options.headers; - if(hs){ - for(var h in hs){ - if(hs.hasOwnProperty(h)){ - CN.initHeader(h, hs[h], false); - } - } - } - if(options.xmlData){ - if (!hs || !hs['Content-Type']){ - CN.initHeader('Content-Type', 'text/xml', false); - } - method = (method ? method : (options.method ? options.method : 'POST')); - data = options.xmlData; - }else if(options.jsonData){ - if (!hs || !hs['Content-Type']){ - CN.initHeader('Content-Type', 'application/json', false); - } - method = (method ? method : (options.method ? options.method : 'POST')); - data = typeof options.jsonData == 'object' ? Ext.encode(options.jsonData) : options.jsonData; - } - } - return CN.asyncRequest(method, uri, cb, data); - }, - - formRequest : function(form, uri, cb, data, isUpload, sslUri){ - CN.setForm(form, isUpload, sslUri); - return CN.asyncRequest(Ext.getDom(form).method ||'POST', uri, cb, data); - }, - - isCallInProgress : function(trans){ - return CN.isCallInProgress(trans); - }, - - abort : function(trans){ - return CN.abort(trans); - }, - - serializeForm : function(form){ - var d = CN.setForm(form.dom || form); - CN.resetFormState(); - return d; - } -}; - -Ext.lib.Region = YAHOO.util.Region; -Ext.lib.Point = YAHOO.util.Point; - - -Ext.lib.Anim = { - scroll : function(el, args, duration, easing, cb, scope){ - this.run(el, args, duration, easing, cb, scope, YAHOO.util.Scroll); - }, - - motion : function(el, args, duration, easing, cb, scope){ - this.run(el, args, duration, easing, cb, scope, YAHOO.util.Motion); - }, - - color : function(el, args, duration, easing, cb, scope){ - this.run(el, args, duration, easing, cb, scope, YAHOO.util.ColorAnim); - }, - - run : function(el, args, duration, easing, cb, scope, type){ - type = type || YAHOO.util.Anim; - if(typeof easing == "string"){ - easing = YAHOO.util.Easing[easing]; - } - var anim = new type(el, args, duration, easing); - anim.animateX(function(){ - Ext.callback(cb, scope); - }); - return anim; - } -}; - -// all lib flyweight calls use their own flyweight to prevent collisions with developer flyweights -function fly(el){ - if(!libFlyweight){ - libFlyweight = new Ext.Element.Flyweight(); - } - libFlyweight.dom = el; - return libFlyweight; -} - -// prevent IE leaks -if(Ext.isIE) { - function fnCleanUp() { - var p = Function.prototype; - delete p.createSequence; - delete p.defer; - delete p.createDelegate; - delete p.createCallback; - delete p.createInterceptor; - - window.detachEvent("onunload", fnCleanUp); - } - window.attachEvent("onunload", fnCleanUp); -} -// various overrides - -// add ability for callbacks with animations -if(YAHOO.util.Anim){ - YAHOO.util.Anim.prototype.animateX = function(callback, scope){ - var f = function(){ - this.onComplete.unsubscribe(f); - if(typeof callback == "function"){ - callback.call(scope || this, this); - } - }; - this.onComplete.subscribe(f, this, true); - this.animate(); - }; -} - -if(YAHOO.util.DragDrop && Ext.dd.DragDrop){ - YAHOO.util.DragDrop.defaultPadding = Ext.dd.DragDrop.defaultPadding; - YAHOO.util.DragDrop.constrainTo = Ext.dd.DragDrop.constrainTo; -} - -YAHOO.util.Dom.getXY = function(el) { - var f = function(el) { - return Ext.lib.Dom.getXY(el); - }; - return YAHOO.util.Dom.batch(el, f, YAHOO.util.Dom, true); -}; - - -// workaround for Safari anim duration speed problems -if(YAHOO.util.AnimMgr){ - YAHOO.util.AnimMgr.fps = 1000; -} - -YAHOO.util.Region.prototype.adjust = function(t, l, b, r){ - this.top += t; - this.left += l; - this.right += r; - this.bottom += b; - return this; -}; - -YAHOO.util.Region.prototype.constrainTo = function(r) { - this.top = this.top.constrain(r.top, r.bottom); - this.bottom = this.bottom.constrain(r.top, r.bottom); - this.left = this.left.constrain(r.left, r.right); - this.right = this.right.constrain(r.left, r.right); - return this; -}; - - -})(); \ No newline at end of file diff --git a/assets/js/ext/src/core/CompositeElement.js b/assets/js/ext/src/core/CompositeElement.js deleted file mode 100644 index 3c908f2..0000000 --- a/assets/js/ext/src/core/CompositeElement.js +++ /dev/null @@ -1,112 +0,0 @@ -/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -/** - * @class Ext.CompositeElement - * @extends Ext.CompositeElementLite - *
This class encapsulates a collection of DOM elements, providing methods to filter - * members, or to perform collective actions upon the whole set.
- *Although they are not listed, this class supports all of the methods of {@link Ext.Element} and - * {@link Ext.Fx}. The methods from these classes will be performed on all the elements in this collection.
- *All methods return this and can be chained.
- * Usage: -
-var els = Ext.select("#some-el div.some-class", true);
-// or select directly from an existing element
-var el = Ext.get('some-el');
-el.select('div.some-class', true);
-
-els.setWidth(100); // all elements become 100 width
-els.hide(true); // all elements fade out and hide
-// or
-els.setWidth(100).hide(true);
-
- */
-Ext.CompositeElement = Ext.extend(Ext.CompositeElementLite, {
-
- constructor : function(els, root){
- this.elements = [];
- this.add(els, root);
- },
-
- // private
- getElement : function(el){
- // In this case just return it, since we already have a reference to it
- return el;
- },
-
- // private
- transformElement : function(el){
- return Ext.get(el);
- }
-
- /**
- * Adds elements to this composite.
- * @param {String/Array} els A string CSS selector, an array of elements or an element
- * @return {CompositeElement} this
- */
-
- /**
- * Returns the Element object at the specified index
- * @param {Number} index
- * @return {Ext.Element}
- */
-
- /**
- * Iterates each element in this composite
- * calling the supplied function using {@link Ext#each}.
- * @param {Function} fn The function to be called with each
- * element. If the supplied function returns false,
- * iteration stops. This function is called with the following arguments:
- * element : Ext.Elementindex
- * in the compositecomposite : Object index : Number composite reference) in which the specified function is executed.
- * Defaults to the element at the current index
- * within the composite.
- * @return {CompositeElement} this
- */
-});
-
-/**
- * Selects elements based on the passed CSS selector to enable {@link Ext.Element Element} methods
- * to be applied to many related elements in one statement through the returned {@link Ext.CompositeElement CompositeElement} or
- * {@link Ext.CompositeElementLite CompositeElementLite} object.
- * @param {String/Array} selector The CSS selector or an array of elements
- * @param {Boolean} unique (optional) true to create a unique Ext.Element for each element (defaults to a shared flyweight object)
- * @param {HTMLElement/String} root (optional) The root element of the query or id of the root
- * @return {CompositeElementLite/CompositeElement}
- * @member Ext.Element
- * @method select
- */
-Ext.Element.select = function(selector, unique, root){
- var els;
- if(typeof selector == "string"){
- els = Ext.Element.selectorFunction(selector, root);
- }else if(selector.length !== undefined){
- els = selector;
- }else{
- throw "Invalid selector";
- }
-
- return (unique === true) ? new Ext.CompositeElement(els) : new Ext.CompositeElementLite(els);
-};
-
-/**
- * Selects elements based on the passed CSS selector to enable {@link Ext.Element Element} methods
- * to be applied to many related elements in one statement through the returned {@link Ext.CompositeElement CompositeElement} or
- * {@link Ext.CompositeElementLite CompositeElementLite} object.
- * @param {String/Array} selector The CSS selector or an array of elements
- * @param {Boolean} unique (optional) true to create a unique Ext.Element for each element (defaults to a shared flyweight object)
- * @param {HTMLElement/String} root (optional) The root element of the query or id of the root
- * @return {CompositeElementLite/CompositeElement}
- * @member Ext
- * @method select
- */
-Ext.select = Ext.Element.select;
\ No newline at end of file
diff --git a/assets/js/ext/src/core/CompositeElementLite-more.js b/assets/js/ext/src/core/CompositeElementLite-more.js
deleted file mode 100644
index ade6ddd..0000000
--- a/assets/js/ext/src/core/CompositeElementLite-more.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/*!
- * Ext JS Library 3.3.1
- * Copyright(c) 2006-2010 Sencha Inc.
- * licensing@sencha.com
- * http://www.sencha.com/license
- */
-/**
- * @class Ext.CompositeElementLite
- */
-Ext.apply(Ext.CompositeElementLite.prototype, {
- addElements : function(els, root){
- if(!els){
- return this;
- }
- if(typeof els == "string"){
- els = Ext.Element.selectorFunction(els, root);
- }
- var yels = this.elements;
- Ext.each(els, function(e) {
- yels.push(Ext.get(e));
- });
- return this;
- },
-
- /**
- * Returns the first Element
- * @return {Ext.Element}
- */
- first : function(){
- return this.item(0);
- },
-
- /**
- * Returns the last Element
- * @return {Ext.Element}
- */
- last : function(){
- return this.item(this.getCount()-1);
- },
-
- /**
- * Returns true if this composite contains the passed element
- * @param el {Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection.
- * @return Boolean
- */
- contains : function(el){
- return this.indexOf(el) != -1;
- },
-
- /**
- * Removes the specified element(s).
- * @param {Mixed} el The id of an element, the Element itself, the index of the element in this composite
- * or an array of any of those.
- * @param {Boolean} removeDom (optional) True to also remove the element from the document
- * @return {CompositeElement} this
- */
- removeElement : function(keys, removeDom){
- var me = this,
- els = this.elements,
- el;
- Ext.each(keys, function(val){
- if ((el = (els[val] || els[val = me.indexOf(val)]))) {
- if(removeDom){
- if(el.dom){
- el.remove();
- }else{
- Ext.removeNode(el);
- }
- }
- els.splice(val, 1);
- }
- });
- return this;
- }
-});
diff --git a/assets/js/ext/src/core/DomHelper-more.js b/assets/js/ext/src/core/DomHelper-more.js
deleted file mode 100644
index c040124..0000000
--- a/assets/js/ext/src/core/DomHelper-more.js
+++ /dev/null
@@ -1,154 +0,0 @@
-/*!
- * Ext JS Library 3.3.1
- * Copyright(c) 2006-2010 Sencha Inc.
- * licensing@sencha.com
- * http://www.sencha.com/license
- */
-/**
- * @class Ext.DomHelper
- */
-Ext.apply(Ext.DomHelper,
-function(){
- var pub,
- afterbegin = 'afterbegin',
- afterend = 'afterend',
- beforebegin = 'beforebegin',
- beforeend = 'beforeend',
- confRe = /tag|children|cn|html$/i;
-
- // private
- function doInsert(el, o, returnElement, pos, sibling, append){
- el = Ext.getDom(el);
- var newNode;
- if (pub.useDom) {
- newNode = createDom(o, null);
- if (append) {
- el.appendChild(newNode);
- } else {
- (sibling == 'firstChild' ? el : el.parentNode).insertBefore(newNode, el[sibling] || el);
- }
- } else {
- newNode = Ext.DomHelper.insertHtml(pos, el, Ext.DomHelper.createHtml(o));
- }
- return returnElement ? Ext.get(newNode, true) : newNode;
- }
-
- // build as dom
- /** @ignore */
- function createDom(o, parentNode){
- var el,
- doc = document,
- useSet,
- attr,
- val,
- cn;
-
- if (Ext.isArray(o)) { // Allow Arrays of siblings to be inserted
- el = doc.createDocumentFragment(); // in one shot using a DocumentFragment
- for (var i = 0, l = o.length; i < l; i++) {
- createDom(o[i], el);
- }
- } else if (typeof o == 'string') { // Allow a string as a child spec.
- el = doc.createTextNode(o);
- } else {
- el = doc.createElement( o.tag || 'div' );
- useSet = !!el.setAttribute; // In IE some elements don't have setAttribute
- for (var attr in o) {
- if(!confRe.test(attr)){
- val = o[attr];
- if(attr == 'cls'){
- el.className = val;
- }else{
- if(useSet){
- el.setAttribute(attr, val);
- }else{
- el[attr] = val;
- }
- }
- }
- }
- Ext.DomHelper.applyStyles(el, o.style);
-
- if ((cn = o.children || o.cn)) {
- createDom(cn, el);
- } else if (o.html) {
- el.innerHTML = o.html;
- }
- }
- if(parentNode){
- parentNode.appendChild(el);
- }
- return el;
- }
-
- pub = {
- /**
- * Creates a new Ext.Template from the DOM object spec.
- * @param {Object} o The DOM object spec (and children)
- * @return {Ext.Template} The new template
- */
- createTemplate : function(o){
- var html = Ext.DomHelper.createHtml(o);
- return new Ext.Template(html);
- },
-
- /** True to force the use of DOM instead of html fragments @type Boolean */
- useDom : false,
-
- /**
- * Creates new DOM element(s) and inserts them before el.
- * @param {Mixed} el The context element
- * @param {Object/String} o The DOM object spec (and children) or raw HTML blob
- * @param {Boolean} returnElement (optional) true to return a Ext.Element
- * @return {HTMLElement/Ext.Element} The new node
- * @hide (repeat)
- */
- insertBefore : function(el, o, returnElement){
- return doInsert(el, o, returnElement, beforebegin);
- },
-
- /**
- * Creates new DOM element(s) and inserts them after el.
- * @param {Mixed} el The context element
- * @param {Object} o The DOM object spec (and children)
- * @param {Boolean} returnElement (optional) true to return a Ext.Element
- * @return {HTMLElement/Ext.Element} The new node
- * @hide (repeat)
- */
- insertAfter : function(el, o, returnElement){
- return doInsert(el, o, returnElement, afterend, 'nextSibling');
- },
-
- /**
- * Creates new DOM element(s) and inserts them as the first child of el.
- * @param {Mixed} el The context element
- * @param {Object/String} o The DOM object spec (and children) or raw HTML blob
- * @param {Boolean} returnElement (optional) true to return a Ext.Element
- * @return {HTMLElement/Ext.Element} The new node
- * @hide (repeat)
- */
- insertFirst : function(el, o, returnElement){
- return doInsert(el, o, returnElement, afterbegin, 'firstChild');
- },
-
- /**
- * Creates new DOM element(s) and appends them to el.
- * @param {Mixed} el The context element
- * @param {Object/String} o The DOM object spec (and children) or raw HTML blob
- * @param {Boolean} returnElement (optional) true to return a Ext.Element
- * @return {HTMLElement/Ext.Element} The new node
- * @hide (repeat)
- */
- append: function(el, o, returnElement){
- return doInsert(el, o, returnElement, beforeend, '', true);
- },
-
- /**
- * Creates new DOM element(s) without inserting them to the document.
- * @param {Object/String} o The DOM object spec (and children) or raw HTML blob
- * @return {HTMLElement} The new uninserted node
- */
- createDom: createDom
- };
- return pub;
-}());
diff --git a/assets/js/ext/src/core/Element-more.js b/assets/js/ext/src/core/Element-more.js
deleted file mode 100644
index f0f2220..0000000
--- a/assets/js/ext/src/core/Element-more.js
+++ /dev/null
@@ -1,200 +0,0 @@
-/*!
- * Ext JS Library 3.3.1
- * Copyright(c) 2006-2010 Sencha Inc.
- * licensing@sencha.com
- * http://www.sencha.com/license
- */
-/**
- * @class Ext.Element
- */
-Ext.Element.addMethods({
- /**
- * Stops the specified event(s) from bubbling and optionally prevents the default action
- * @param {String/Array} eventName an event / array of events to stop from bubbling
- * @param {Boolean} preventDefault (optional) true to prevent the default action too
- * @return {Ext.Element} this
- */
- swallowEvent : function(eventName, preventDefault) {
- var me = this;
- function fn(e) {
- e.stopPropagation();
- if (preventDefault) {
- e.preventDefault();
- }
- }
-
- if (Ext.isArray(eventName)) {
- Ext.each(eventName, function(e) {
- me.on(e, fn);
- });
- return me;
- }
- me.on(eventName, fn);
- return me;
- },
-
- /**
- * Create an event handler on this element such that when the event fires and is handled by this element,
- * it will be relayed to another object (i.e., fired again as if it originated from that object instead).
- * @param {String} eventName The type of event to relay
- * @param {Object} object Any object that extends {@link Ext.util.Observable} that will provide the context
- * for firing the relayed event
- */
- relayEvent : function(eventName, observable) {
- this.on(eventName, function(e) {
- observable.fireEvent(eventName, e);
- });
- },
-
- /**
- * Removes worthless text nodes
- * @param {Boolean} forceReclean (optional) By default the element
- * keeps track if it has been cleaned already so
- * you can call this over and over. However, if you update the element and
- * need to force a reclean, you can pass true.
- */
- clean : function(forceReclean) {
- var me = this,
- dom = me.dom,
- n = dom.firstChild,
- ni = -1;
-
- if (Ext.Element.data(dom, 'isCleaned') && forceReclean !== true) {
- return me;
- }
-
- while (n) {
- var nx = n.nextSibling;
- if (n.nodeType == 3 && !(/\S/.test(n.nodeValue))) {
- dom.removeChild(n);
- } else {
- n.nodeIndex = ++ni;
- }
- n = nx;
- }
-
- Ext.Element.data(dom, 'isCleaned', true);
- return me;
- },
-
- /**
- * Direct access to the Updater {@link Ext.Updater#update} method. The method takes the same object
- * parameter as {@link Ext.Updater#update}
- * @return {Ext.Element} this
- */
- load : function() {
- var updateManager = this.getUpdater();
- updateManager.update.apply(updateManager, arguments);
-
- return this;
- },
-
- /**
- * Gets this element's {@link Ext.Updater Updater}
- * @return {Ext.Updater} The Updater
- */
- getUpdater : function() {
- return this.updateManager || (this.updateManager = new Ext.Updater(this));
- },
-
- /**
- * Update the innerHTML of this element, optionally searching for and processing scripts
- * @param {String} html The new HTML
- * @param {Boolean} loadScripts (optional) True to look for and process scripts (defaults to false)
- * @param {Function} callback (optional) For async script loading you can be notified when the update completes
- * @return {Ext.Element} this
- */
- update : function(html, loadScripts, callback) {
- if (!this.dom) {
- return this;
- }
- html = html || "";
-
- if (loadScripts !== true) {
- this.dom.innerHTML = html;
- if (typeof callback == 'function') {
- callback();
- }
- return this;
- }
-
- var id = Ext.id(),
- dom = this.dom;
-
- html += '';
-
- Ext.lib.Event.onAvailable(id, function() {
- var DOC = document,
- hd = DOC.getElementsByTagName("head")[0],
- re = /(?: