mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-25 00:38:33 +00:00
Merge "Only reset summaryPrefixLength on user event"
This commit is contained in:
commit
db82dce31f
|
@ -299,16 +299,20 @@ ReplyWidget.prototype.toggleAdvanced = function ( showAdvanced ) {
|
|||
} else {
|
||||
this.focus();
|
||||
}
|
||||
this.onEditSummaryChange();
|
||||
this.storeEditSummary();
|
||||
this.storage.set( this.storagePrefix + '/showAdvanced', this.showAdvanced ? '1' : '' );
|
||||
};
|
||||
|
||||
ReplyWidget.prototype.onEditSummaryChange = function () {
|
||||
this.storage.set( this.storagePrefix + '/summary', this.getEditSummary() );
|
||||
this.storeEditSummary();
|
||||
// After first subsequent edit, reset this so auto-select no longer happens
|
||||
this.summaryPrefixLength = null;
|
||||
};
|
||||
|
||||
ReplyWidget.prototype.storeEditSummary = function () {
|
||||
this.storage.set( this.storagePrefix + '/summary', this.getEditSummary() );
|
||||
};
|
||||
|
||||
ReplyWidget.prototype.getEditSummary = function () {
|
||||
return this.editSummaryInput.getValue();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue