http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96626
Revision: 96626
Author: inez
Date: 2011-09-08 22:38:20 +0000 (Thu, 08 Sep 2011)
Log Message:
-----------
Lists works now, but no styling yet
Modified Paths:
--------------
trunk/parsers/wikidom/lib/synth/bases/es.ViewContainer.js
trunk/parsers/wikidom/lib/synth/bases/es.ViewContainerItem.js
trunk/parsers/wikidom/lib/synth/views/es.ListBlockView.js
Modified: trunk/parsers/wikidom/lib/synth/bases/es.ViewContainer.js
===================================================================
--- trunk/parsers/wikidom/lib/synth/bases/es.ViewContainer.js 2011-09-08
22:28:40 UTC (rev 96625)
+++ trunk/parsers/wikidom/lib/synth/bases/es.ViewContainer.js 2011-09-08
22:38:20 UTC (rev 96626)
@@ -26,9 +26,10 @@
if ( typeof tagName !== 'string' ) {
tagName = 'div';
}
- this.$ = $( '<' + tagName + '/>' )
- .addClass( 'editSurface-' + typeName )
- .data( typeName, this );
+ if ( !this.$ ) {
+ this.$ = $( '<' + tagName + '/>' );
+ }
+ this.$.addClass( 'editSurface-' + typeName ).data( typeName, this );
var container = this;
function recycleItemView( itemModel, autoCreate ) {
var itemView = container.lookupItemView( itemModel );
Modified: trunk/parsers/wikidom/lib/synth/bases/es.ViewContainerItem.js
===================================================================
--- trunk/parsers/wikidom/lib/synth/bases/es.ViewContainerItem.js
2011-09-08 22:28:40 UTC (rev 96625)
+++ trunk/parsers/wikidom/lib/synth/bases/es.ViewContainerItem.js
2011-09-08 22:38:20 UTC (rev 96626)
@@ -17,9 +17,11 @@
if ( typeof tagName !== 'string' ) {
tagName = 'div';
}
- this.$ = $( '<' + tagName + '/>' )
- .addClass( 'editSurface-' + typeName )
- .data( typeName, this );
+
+ if ( !this.$ ) {
+ this.$ = $( '<' + tagName + '/>' );
+ }
+ this.$.addClass( 'editSurface-' + typeName ).data( typeName, this );
};
es.ViewContainerItem.prototype.getModel = function() {
Modified: trunk/parsers/wikidom/lib/synth/views/es.ListBlockView.js
===================================================================
--- trunk/parsers/wikidom/lib/synth/views/es.ListBlockView.js 2011-09-08
22:28:40 UTC (rev 96625)
+++ trunk/parsers/wikidom/lib/synth/views/es.ListBlockView.js 2011-09-08
22:38:20 UTC (rev 96626)
@@ -2,7 +2,7 @@
* Creates an es.ParagraphBlockView object.
*/
es.ListBlockView = function( model ) {
- es.ViewContainer.call( this, model, 'items' );
+ es.ViewContainer.call( this, model, 'list' );
es.BlockView.call( this, model, 'list' );
};
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs