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

אויך מוסטער
(?)
(אויך מוסטער)
 
(4 צווישנדיגע ווערסיעס פונעם זעלבן באַניצער נישט געוויזן)
שורה 140: שורה 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;
שורה 152: שורה 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));} else mw.notify(d);
                     if (d && d.edit && d.edit.result == 'Success') mw.notify(mw.msg('qlinker-save-success', pagename));
                }).fail(function (d) {
                mw.notify(d);
                 });
                 });
             }
             }
שורה 290: שורה 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'), // רעגעקס ארבעט נישט ביי אונז