jenkins-bot has submitted this change and it was merged. Change subject: Correct checkAndSave capitalization ......................................................................
Correct checkAndSave capitalization Change-Id: I49528c85a50ac125733e1f866ae9fd4c8a5bc47d --- M modules/draft/ext.cx.draft.js 1 file changed, 4 insertions(+), 4 deletions(-) Approvals: Santhosh: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/draft/ext.cx.draft.js b/modules/draft/ext.cx.draft.js index 6ea852e..d1754b7 100644 --- a/modules/draft/ext.cx.draft.js +++ b/modules/draft/ext.cx.draft.js @@ -66,7 +66,7 @@ return $content.html(); }; - function checkAndsave() { + function checkAndSave() { if ( mw.cx.dirty ) { mw.hook( 'mw.cx.translation.save' ).fire(); } @@ -79,13 +79,13 @@ mw.hook( 'mw.cx.translation.save' ).add( $.proxy( this.save, this ) ); // Save the draft on progress events, but not in all progress // events. Use a few seconds delay. - mw.hook( 'mw.cx.progress' ).add( $.debounce( 5000, checkAndsave ) ); + mw.hook( 'mw.cx.progress' ).add( $.debounce( 5000, checkAndSave ) ); // Save when CTRL+S is pressed. $( document ).on( 'keydown', function ( e ) { // See https://medium.com/medium-eng/the-curious-case-of-disappearing-polish-s-fa398313d4df if ( ( e.metaKey || e.ctrlKey && !e.altKey ) && e.which === 83 ) { - checkAndsave(); + checkAndSave(); return false; } } ); @@ -350,7 +350,7 @@ targetTitle ); timer = setInterval( function () { - checkAndsave(); + checkAndSave(); }, 5 * 60 * 1000 ); } ).fail( function ( errorCode ) { if ( errorCode === 'assertuserfailed' ) { -- To view, visit https://gerrit.wikimedia.org/r/246665 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I49528c85a50ac125733e1f866ae9fd4c8a5bc47d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il> Gerrit-Reviewer: Santhosh <santhosh.thottin...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits