https://bugzilla.wikimedia.org/show_bug.cgi?id=35333

       Web browser: ---
             Bug #: 35333
           Summary: Integrate problem reports into core
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Resource Loader
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


After talking with Rillke, we ended up discussing the idea of integrating
problem reporting bugs like has been done with 
[[commons:MediaWiki:Gadget-AjaxQuickDelete.js]]:

      if (!this.disableReport) {
         dlgButtons[this.i18n.reportButtonLabel] = function() {
            $('#feedbackContainer').contents().remove();
            $('#feedbackContainer').append($('<img>', {
               src: '.../images/ajax-loader.gif'
            })).css('text-align', 'center');
            var randomId = Math.round(Math.random()*1099511627776);
            var toSend = '\n== Autoreport by AjaxQuickDelete ' + randomId + 
              ' ==\n' + err + '\n++++\n:Task: ' + o.currentTask +
              '\n:NextTask: ' + o.tasks[0] + '\n:LastTask: ' +
              o.tasks[o.tasks.length - 1] + '\n:Page: ' +
              (o.pageName || pageName) + '\n:Skin: ' +
              mw.user.options.get('skin') +
              '\n:[{{fullurl:Special:Contributions|target={{subst:urlencode:' +
              '{{subst:REVISIONUSER}}}}&offset={{subst:REVISIONTIMESTAMP}}}}' +
              ' Contribs before error]';
            $.post(o.apiURL, {
               'action': 'edit',
               'format': 'json',
               'title': 'MediaWiki talk:AjaxQuickDelete.js/auto-errors',
               'summary': '[[#Autoreport by AjaxQuickDelete ' + randomId +
                          '|Reporting an AjaxQuickDelete error.]] Random ID=' +
                          randomId,
               'appendtext': toSend,
               'token': (o.edittoken || mw.user.tokens.get('editToken'))
            }, function() {
               o.reloadPage();
            });
         };
      }

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to