diff --git a/package.json b/package.json index bd1c5cd9..bc63be96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "name": "afc-helper", - "version": "0.9.1", "description": "A tool for reviewing Articles for Creation submissions on the English Wikipedia.", "homepage": "https://github.com/wikimedia-gadgets/afc-helper", "bugs": { diff --git a/src/modules/core.js b/src/modules/core.js index ccb4ce03..d29ace92 100644 --- a/src/modules/core.js +++ b/src/modules/core.js @@ -61,14 +61,8 @@ AFCH.preferences = new AFCH.Preferences(); AFCH.prefs = AFCH.preferences.prefStore; - // Must be defined above the larger $.extend block - // because AFCH.consts.summaryAd depends on it - AFCH.consts.version = '0.9.1'; - // Add more constants -- don't overwrite those already set, though AFCH.consts = $.extend( AFCH.consts, { - versionName: 'Imperial Ibex', - // If true, the script will NOT modify actual wiki content and // will instead mock all such API requests (success assumed) mockItUp: AFCH.consts.mockItUp || false, @@ -86,7 +80,7 @@ user: mw.user.getName(), // Edit summary ad - summaryAd: ' ([[WP:AFCH|AFCH]] ' + AFCH.consts.version + ')', + summaryAd: ' ([[WP:AFCH|AFCH]])', // Require users to be on whitelist to use the script // Testwiki users don't need to be on it @@ -239,7 +233,7 @@ .addClass( 'feedback-link link' ) .click( function () { feedback.launch( { - subject: '[' + AFCH.consts.version + '] ' + ( type ? 'Feedback about ' + type : 'AFCH feedback' ) + subject: ( type ? 'Feedback about ' + type : 'AFCH feedback' ) } ); } ) .appendTo( $element ); @@ -1292,8 +1286,6 @@ // of the preferences as variables, as well as an additional few used in other locations. this.$dialog.empty().append( this.views.renderView( 'preferences', $.extend( {}, this.prefStore, { - version: AFCH.consts.version, - versionName: AFCH.consts.versionName, userAgent: window.navigator.userAgent } ) ) ); diff --git a/src/modules/submissions.js b/src/modules/submissions.js index 702c30f4..5824381d 100644 --- a/src/modules/submissions.js +++ b/src/modules/submissions.js @@ -811,7 +811,7 @@ .append( $( '