Widget:ICSGenerator: Difference between revisions

m Possibly proper dependency name
m Moved the currentScript declaration outside
Line 2: Line 2:
var icsStart = "<!--{$start|escape:'html'}-->";
var icsStart = "<!--{$start|escape:'html'}-->";
var icsEnd = "<!--{$end|escape:'html'}-->";
var icsEnd = "<!--{$end|escape:'html'}-->";
var container = document.currentScript.parentNode;
RLQ.push(['ext.gadget.md5hasher', function () {
RLQ.push(['ext.gadget.md5hasher', function () {
   $(document).ready(function() {
   $(document).ready(function() {
    var container = document.currentScript.parentNode;
     window.iopwidgets.ICSGenerator.buildIcsLink(icsName, icsStart, icsEnd, container);
     window.iopwidgets.ICSGenerator.buildIcsLink(icsName, icsStart, icsEnd, container);
   });
   });
}]);</script></includeonly><noinclude>{{Documentation}}</noinclude>
}]);</script></includeonly><noinclude>{{Documentation}}</noinclude>