Index: trunk/parsers/wikidom/lib/synth/views/es.ListBlockItemView.js |
— | — | @@ -3,9 +3,14 @@ |
4 | 4 | */ |
5 | 5 | es.ListBlockItemView = function( model ) { |
6 | 6 | es.ViewContainerItem.call( this, model, 'listItem' ); |
7 | | - this.contentView = new es.ContentView( this.$, this.model.content ); |
8 | | - this.$.addClass( 'editSurface-listItem-' + this.model.styles[this.model.styles.length - 1] ) |
| 7 | + this.$icon = $( '<div class="editSurface-listItem-icon"></div>' ); |
| 8 | + this.$content = $( '<div class="editSurface-listItem-content"></div>' ); |
| 9 | + this.$ |
| 10 | + .append( this.$icon ) |
| 11 | + .append( this.$content ) |
| 12 | + .addClass( 'editSurface-listItem-' + this.model.styles[this.model.styles.length - 1] ) |
9 | 13 | .addClass( 'editSurface-listItem-level' + ( this.model.styles.length - 1 ) ); |
| 14 | + this.contentView = new es.ContentView( this.$content, this.model.content ); |
10 | 15 | }; |
11 | 16 | |
12 | 17 | /** |
— | — | @@ -15,6 +20,10 @@ |
16 | 21 | this.contentView.render(); |
17 | 22 | }; |
18 | 23 | |
| 24 | +es.ListBlockItemView.prototype.setNumber = function( number ) { |
| 25 | + this.$icon.text( number + '.' ); |
| 26 | +}; |
| 27 | + |
19 | 28 | /** |
20 | 29 | * Gets offset within content of position. |
21 | 30 | */ |