jenkins-bot has submitted this change and it was merged.

Change subject: Let's not put slugs around lists because there is no such need.
......................................................................


Let's not put slugs around lists because there is no such need.

It is easy to exit the list at any given point by using the toolbar
button or pressing enter twice while at the end of the list.

Change-Id: Ie34300fc13a4548e283348ef58c88ce420fbe0c1
---
M modules/ve/ce/ve.ce.Node.js
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Trevor Parscal: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ve/ce/ve.ce.Node.js b/modules/ve/ce/ve.ce.Node.js
index eb32584..1e93af7 100644
--- a/modules/ve/ce/ve.ce.Node.js
+++ b/modules/ve/ce/ve.ce.Node.js
@@ -160,7 +160,10 @@
  * @returns {boolean} Whether the node can have a slug before it
  */
 ve.ce.Node.prototype.canHaveSlugBefore = function () {
-       return !this.canContainContent() && this.getParentNodeTypes() === null 
&& this.type !== 'text';
+       return !this.canContainContent() &&
+               this.getParentNodeTypes() === null &&
+               this.type !== 'text' &&
+               this.type !== 'list';
 };
 
 /**

-- 
To view, visit https://gerrit.wikimedia.org/r/67283
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie34300fc13a4548e283348ef58c88ce420fbe0c1
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Inez <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Inez <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Trevor Parscal <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to