r102337 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102336‎ | r102337 | r102338 >
Date:22:29, 7 November 2011
Author:inez
Status:deferred
Tags:
Comment:
Add CSS class 'es-ViewBranchNode-firstChild' to all first childs of ViewBranchNode
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewBranchNode.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewBranchNode.js
@@ -48,6 +48,9 @@
4949 this.children.push( childView );
5050 // Update DOM
5151 this.$.append( childView.$ );
 52+ if ( this.children.length === 1 ) {
 53+ childView.$.addClass('es-ViewBranchNode-firstChild');
 54+ }
5255 this.emit( 'afterPush', childView );
5356 this.emit( 'update' );
5457 };

Status & tagging log