r105481 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105480‎ | r105481 | r105482 >
Date:23:12, 7 December 2011
Author:inez
Status:deferred
Tags:
Comment:
Add 'term' and 'defintion' to regex (one that is responsible for deleting all listitem styles from an item) in ListItemView.setClasses method.
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/views/es.ListItemView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/views/es.ListItemView.js
@@ -38,7 +38,7 @@
3939 'class',
4040 classes
4141 .replace( / ?es-listItemView-level[0-9]+/, '' )
42 - .replace( / ?es-listItemView-(bullet|number)/, '' )
 42+ .replace( / ?es-listItemView-(bullet|number|term|definition)/, '' )
4343 )
4444 // Set the list style class from the style on top of the stack
4545 .addClass( 'es-listItemView-' + styles[styles.length - 1] )

Status & tagging log