jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/366616 )
Change subject: mediawiki.action.edit: Add TODO referencing T6714
......................................................................
mediawiki.action.edit: Add TODO referencing T6714
Change-Id: Ifa5ba02d8e45b2529c17ba045e13fd6360569f4b
---
M resources/src/mediawiki.action/mediawiki.action.edit.js
1 file changed, 5 insertions(+), 3 deletions(-)
Approvals:
Catrope: Looks good to me, approved
jenkins-bot: Verified
Jforrester: Looks good to me, approved
diff --git a/resources/src/mediawiki.action/mediawiki.action.edit.js
b/resources/src/mediawiki.action/mediawiki.action.edit.js
index 5b81017..35b1b80 100644
--- a/resources/src/mediawiki.action/mediawiki.action.edit.js
+++ b/resources/src/mediawiki.action/mediawiki.action.edit.js
@@ -17,7 +17,9 @@
*/
$( function () {
- var editBox, scrollTop, $editForm;
+ var editBox, scrollTop, $editForm,
+ // TODO T6714: Once this can be adjusted, read this
from config.
+ summaryByteLimit = 255;
if ( $( '#editform' ).hasClass( 'mw-editform-ooui' ) ) {
mw.loader.using( 'oojs-ui-core' ).then( function () {
@@ -30,11 +32,11 @@
// Show a byte-counter to users with how many
bytes are left for their edit summary.
// TODO: This looks a bit weird, as there is no
unit in the UI, just numbers; showing
// 'bytes' confused users in testing, and
showing 'chars' would be a lie. See T42035.
- mw.widgets.visibleByteLimit( wpSummary, 255 );
+ mw.widgets.visibleByteLimit( wpSummary,
summaryByteLimit );
} );
} else {
// Make sure edit summary does not exceed byte limit
- $( '#wpSummary' ).byteLimit( 255 );
+ $( '#wpSummary' ).byteLimit( summaryByteLimit );
}
// Restore the edit box scroll state following a preview
operation,
--
To view, visit https://gerrit.wikimedia.org/r/366616
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifa5ba02d8e45b2529c17ba045e13fd6360569f4b
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Fomafix <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits