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

מאין תקציר עריכה
מאין תקציר עריכה
שורה 4: שורה 4:
Author: [[:he:User:ערן]]
Author: [[:he:User:ערן]]
*/
*/
$(function(){
if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) $(function(){
mw.messages.set({
mw.messages.set({
'qlinker-title' : 'עריכה מהירה',
'qlinker-title' : 'עריכה מהירה',
שורה 17: שורה 17:


function createQuickEditorDialog(searchRes){
function createQuickEditorDialog(searchRes){
function QuickEditorDialog( config ) {
function QuickEditorDialog( config ) {
  this.contextRgx = new RegExp('.*[^\[]' + mw.RegExp.escape(mw.config.get('wgTitle')) +'(?!\]\]).*');
  this.contextRgx = new RegExp('.*[^\[]' + mw.RegExp.escape(mw.config.get('wgTitle')) +'(?!\]\]).*');
שורה 187: שורה 185:
indexpageids: 1
indexpageids: 1
}).done(function(d){
}).done(function(d){
if (d.query && d.query.pageids && d.query.pageids.length>1) addLinksWizard.css('font-weight', 'bold')
if (d.query && d.query.pageids && d.query.pageids.length>1) addLinksWizard.css('font-weight', 'bold');
else addLinksWizard.hide();
});
});
}
}
});
});