מדיה ויקי:Common.js: הבדלים בין גרסאות בדף

מאין תקציר עריכה
יצירת אוונט כשקוראים ל-addPortletLink
שורה 95: שורה 95:
}
}
     $('#firstHeading span').attr('dir', null);
     $('#firstHeading span').attr('dir', null);
// create an event when "addportellink" is called, so scripts that manipulate menus ca readjust.
var oldFunc = mw.util.addPortletLink;
if (typeof oldFunc === 'function')
mw.util.addPortletLink = function() {
var res = oldFunc.apply( this, arguments );
$( document ).trigger( 'new-portlet-link' );
return res;
};
});
});