equal
deleted
inserted
replaced
59 |
59 |
60 if (typeof window.JSON == "undefined") { |
60 if (typeof window.JSON == "undefined") { |
61 $L.queueScript(ns.getLib("json")); |
61 $L.queueScript(ns.getLib("json")); |
62 } |
62 } |
63 |
63 |
64 $L.queueWait().queueScript(ns.getLib("jQueryUI")).queueWait(); |
64 $L.queueWait(function(){ |
|
65 if (typeof ns.jQuery === "undefined" && typeof window.jQuery !== "undefined") { |
|
66 ns.jQuery = window.jQuery; |
|
67 if (former$ || formerJQuery) { |
|
68 window.jQuery.noConflict(formerJQuery); |
|
69 } |
|
70 } |
|
71 if (typeof ns._ === "undefined" && typeof window._ !== "undefined") { |
|
72 ns._ = window._; |
|
73 if (formerUnderscore) { |
|
74 _.noConflict(); |
|
75 } |
|
76 } |
|
77 }).queueScript(ns.getLib("jQueryUI")).queueWait(); |
65 |
78 |
66 /* widget specific requirements */ |
79 /* widget specific requirements */ |
67 for(var _i = 0; _i < this.config.widgets.length; _i++) { |
80 for(var _i = 0; _i < this.config.widgets.length; _i++) { |
68 var _t = this.config.widgets[_i].type; |
81 var _t = this.config.widgets[_i].type; |
69 if (typeof ns.widgetsRequirements[_t] !== "undefined" && typeof ns.widgetsRequirements[_t].requires !== "undefined" ) { |
82 if (typeof ns.widgetsRequirements[_t] !== "undefined" && typeof ns.widgetsRequirements[_t].requires !== "undefined" ) { |
82 $L.runQueue(); |
95 $L.runQueue(); |
83 }; |
96 }; |
84 |
97 |
85 Metadataplayer.prototype.onLibsLoaded = function() { |
98 Metadataplayer.prototype.onLibsLoaded = function() { |
86 ns.log("IriSP.Metadataplayer.prototype.onLibsLoaded"); |
99 ns.log("IriSP.Metadataplayer.prototype.onLibsLoaded"); |
87 if (typeof ns.jQuery === "undefined" && typeof window.jQuery !== "undefined") { |
|
88 ns.jQuery = window.jQuery; |
|
89 if (former$ || formerJQuery) { |
|
90 window.jQuery.noConflict(formerJQuery); |
|
91 } |
|
92 } |
|
93 if (typeof ns._ === "undefined" && typeof window._ !== "undefined") { |
|
94 ns._ = window._; |
|
95 if (formerUnderscore) { |
|
96 _.noConflict(); |
|
97 } |
|
98 } |
|
99 ns.loadCss(ns.getLib("cssjQueryUI")); |
100 ns.loadCss(ns.getLib("cssjQueryUI")); |
100 ns.loadCss(this.config.css); |
101 ns.loadCss(this.config.css); |
101 |
102 |
102 this.$ = ns.jQuery('#' + this.config.container); |
103 this.$ = ns.jQuery('#' + this.config.container); |
103 this.$.css({ |
104 this.$.css({ |