From ca34076fbd5d24f2a77954bd07f77d227daf45bd Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 20 Jun 2011 12:05:57 +0200 Subject: [IMP] rollback namespace-alteration to dhtmlXChart, fix dhtmlxscheduler and dhtmlxgantt to not fuck up the root dhtmlx namespace (which is what breaks chart) bzr revid: xmo@openerp.com-20110620100557-zya9u6a3zuhhs0c3 --- .../dhtmlxScheduler/codebase/dhtmlxscheduler.js | 43 +--------------------- 1 file changed, 1 insertion(+), 42 deletions(-) (limited to 'addons/base_calendar/static/lib/dhtmlxScheduler/codebase/dhtmlxscheduler.js') diff --git a/addons/base_calendar/static/lib/dhtmlxScheduler/codebase/dhtmlxscheduler.js b/addons/base_calendar/static/lib/dhtmlxScheduler/codebase/dhtmlxscheduler.js index 2413d122573..ec0b61b638d 100644 --- a/addons/base_calendar/static/lib/dhtmlxScheduler/codebase/dhtmlxscheduler.js +++ b/addons/base_calendar/static/lib/dhtmlxScheduler/codebase/dhtmlxscheduler.js @@ -6,47 +6,6 @@ to use it in not GPL project. Please contact sales@dhtmlx.com for details (c) DHTMLX Ltd. */ -dhtmlx = function (B) { - for (var A in B) { - dhtmlx[A] = B[A] - } - return dhtmlx -}; -dhtmlx.extend_api = function (A, D, C) { - var B = window[A]; - if (!B) { - return - } - window[A] = function (G) { - if (G && typeof G == "object" && !G.tagName && !(G instanceof Array)) { - var F = B.apply(this, (D._init ? D._init(G) : arguments)); - for (var E in dhtmlx) { - if (D[E]) { - this[D[E]](dhtmlx[E]) - } - } - for (var E in G) { - if (D[E]) { - this[D[E]](G[E]) - } else { - if (E.indexOf("on") == 0) { - this.attachEvent(E, G[E]) - } - } - } - } else { - var F = B.apply(this, arguments) - } - if (D._patch) { - D._patch(this) - } - return F || this - }; - window[A].prototype = B.prototype; - if (C) { - dhtmlXHeir(window[A].prototype, C) - } -}; dhtmlxAjax = { get: function (A, C) { var B = new dtmlXMLLoaderObject(true); @@ -3732,4 +3691,4 @@ This software is allowed to use under GPL or you need to obtain Commercial or En to use it in not GPL project. Please contact sales@dhtmlx.com for details (c) DHTMLX Ltd. -*/ \ No newline at end of file +*/ -- cgit v1.2.3