מדיה ויקי:Gadget-ondemand-Imagemap-Highlight.js: הבדלים בין גרסאות בדף

כמקובל
 
(2 גרסאות ביניים של משתמש אחר אחד אינן מוצגות)
שורה 114: שורה 114:
var someli; // select arbitrary one
var someli; // select arbitrary one
$('area', map).each(function() {
$('area', map).each(function() {
var text = this.title;
var text = mw.html.escape(this.title);
var li = lis[text]; // title already met? use the same li
var li = lis[text]; // title already met? use the same li
if (!li) { //no? create a new one.
if (!li) { //no? create a new one.
שורה 133: שורה 133:
});
});
if (someli) someli.trigger('mouseout');
if (someli) someli.trigger('mouseout');
// mw.loader.using('jquery.makeCollapsible').then( function () {
mw.loader.using('jquery.makeCollapsible').then( function () {
// ol.addClass('mw-collapsed')
ol.addClass('mw-collapsed')
// .makeCollapsible();
.makeCollapsible();
// });
});
}
}