mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
ReplyWidgetVisual: Use hasContent instead of hasBeenModified for isEmpty
Change-Id: I093a4b68573809e5222db01aead3ce00ed9a87ae
This commit is contained in:
parent
922443f68f
commit
75da1e0b3a
|
@ -49,7 +49,7 @@ ReplyWidgetVisual.prototype.clear = function () {
|
|||
|
||||
ReplyWidgetVisual.prototype.isEmpty = function () {
|
||||
var surface = this.replyBodyWidget.target.getSurface();
|
||||
return !surface || !surface.getModel().hasBeenModified();
|
||||
return !( surface && surface.getModel().getDocument().data.hasContent() );
|
||||
};
|
||||
|
||||
ReplyWidgetVisual.prototype.getMode = function () {
|
||||
|
|
Loading…
Reference in a new issue