* @param {Object} [config] Configuration object
* @cfg {mw.Title} [title="Feedback"] The title of the page where you collect
* feedback.
+ * @cfg {string} [apiUrl] api.php URL if the feedback page is on another wiki
* @cfg {string} [dialogTitleMessageKey="feedback-dialog-title"] Message key for the
* title of the dialog box
* @cfg {mw.Uri|string} [bugsLink="//phabricator.wikimedia.org/maniphest/task/create/"] URL where
// Feedback page title
this.feedbackPageTitle = config.title || new mw.Title( 'Feedback' );
- this.messagePosterPromise = mw.messagePoster.factory.create( this.feedbackPageTitle );
+ this.messagePosterPromise = mw.messagePoster.factory.create( this.feedbackPageTitle, config.apiUrl );
// Links
this.bugsTaskSubmissionLink = config.bugsLink || '//phabricator.wikimedia.org/maniphest/task/create/';
case 'submitted':
dialogConfig = {
title: mw.msg( 'feedback-thanks-title' ),
- message: $( '<span>' ).append(
- mw.message(
- 'feedback-thanks',
- this.feedbackPageTitle.getNameText(),
- $( '<a>' )
- .attr( {
- target: '_blank',
- href: this.feedbackPageTitle.getUrl()
- } )
- ).parse()
+ message: $( '<span>' ).msg(
+ 'feedback-thanks',
+ this.feedbackPageTitle.getNameText(),
+ $( '<a>' ).attr( {
+ target: '_blank',
+ href: this.feedbackPageTitle.getUrl()
+ } )
),
actions: [
{
/**
* Get the bug report link
*
- * @returns {string} Link to the external bug report form
+ * @return {string} Link to the external bug report form
*/
mw.Feedback.Dialog.prototype.getBugReportLink = function () {
return this.bugReportLink;