Inez has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/67283


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 list at any given point by using 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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/83/67283/1

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: newchange
Gerrit-Change-Id: Ie34300fc13a4548e283348ef58c88ce420fbe0c1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Inez <[email protected]>

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

Reply via email to