אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Gadget-quickLinker.js"

אויך מוסטער
קאין תקציר עריכה
(אויך מוסטער)
 
(2 צווישנדיגע ווערסיעס פונעם זעלבן באַניצער נישט געוויזן)
שורה 125: שורה 125:
                     }, this);
                     }, this);
                 case 'saveContinue':
                 case 'saveContinue':
                console.log('saveContinue case');
                     return new OO.ui.Process(function () {
                     return new OO.ui.Process(function () {
                         dialog.savePage();
                         dialog.savePage();
שורה 141: שורה 140:


         QuickEditorDialog.prototype.savePage = function () {
         QuickEditorDialog.prototype.savePage = function () {
        console.log('savePage called');
        console.log(this.curPage, this.searchData.pages[this.searchData.pageids[this.pageI]]);
             if (this.curPage) {
             if (this.curPage) {
                 var api = new mw.Api(), pagename = this.curPage;
                 var api = new mw.Api(), pagename = this.curPage;
שורה 153: שורה 150:
                     starttimestamp: this.starttimestamp,
                     starttimestamp: this.starttimestamp,
                     text: this.text,
                     text: this.text,
                    tags: 'quick linker'
                //  tags: 'quick linker'
                 }).done(function (d) {
                 }).done(function (d) {
                     if (d && d.edit && d.edit.result == 'Success') mw.notify(mw.msg('qlinker-save-success', pagename));
                     if (d && d.edit && d.edit.result == 'Success') mw.notify(mw.msg('qlinker-save-success', pagename));
שורה 293: שורה 290:
             action: 'query',
             action: 'query',
             generator: 'search',
             generator: 'search',
             gsrnamespace: '0|8000',
             gsrnamespace: '0|10|8000',
             //gsrsearch: searchRegex + ' -linksto:' + mw.config.get('wgPageName'),
             //gsrsearch: searchRegex + ' -linksto:' + mw.config.get('wgPageName'),
             gsrsearch: 'insource:' + mw.config.get('wgTitle') + ' -linksto:' + mw.config.get('wgTitle'), // רעגעקס ארבעט נישט ביי אונז
             gsrsearch: 'insource:' + mw.config.get('wgTitle') + ' -linksto:' + mw.config.get('wgTitle'), // רעגעקס ארבעט נישט ביי אונז