Browse Source

Go on with Class Manager feature

pull/14/head
Artur Arseniev 10 years ago
parent
commit
0de9f3f450
  1. 2
      src/commands/view/OpenStyleManager.js
  2. 2
      src/style_manager/view/PropertyView.js

2
src/commands/view/OpenStyleManager.js

@ -24,13 +24,11 @@ define(['StyleManager'], function(StyleManager) {
// Class Manager container
this.clm = em.get('ClassManager');
if(this.clm){
/*
this.$clm = new this.clm.ClassTagsView({
collection: new this.clm.ClassTags([]),
config: this.clm.config,
}).render().el;
this.$cn2.append(this.$clm);
*/
}
// Style Manager manager container

2
src/style_manager/view/PropertyView.js

@ -47,14 +47,12 @@ define(['backbone', 'text!./../templates/propertyLabel.html'],
componentSelected: function(e){
this.selectedComponent = this.target.get('selectedComponent');
if(this.selectedComponent){
/*
var classes = this.selectedComponent.get('classes');
if(classes.length){
var valid = _.filter(classes.models, function(item){ return item.get('active'); });
var ids = _.pluck(valid, 'cid');
var cssBlock = '';//this.sm.get('CssManager').getRule(ids, 'status', 'mediaq');
}
*/
//I will rerender it only if the assigned one is different from the actuale value
//console.log('property '+this.property+" view: "+this.componentValue+" model: "+ this.model.get('value'));
if( !this.sameValue() ){

Loading…
Cancel
Save