mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-05 07:03:24 +01:00
Fix selected icon.
This commit is contained in:
parent
d27d15e162
commit
96b40058cc
@ -37,13 +37,16 @@ mindplot.widget.IconPanel = new Class({
|
||||
}
|
||||
|
||||
var iconId = familyIcons[j];
|
||||
var img = new Element('img').setStyles({width:16,height:16,padding:"0px 2px"}).inject(familyContent);
|
||||
img.id = iconId;
|
||||
img.src = mindplot.ImageIcon.prototype._getImageUrl(iconId);
|
||||
var img = new Element('img', {
|
||||
id:iconId,
|
||||
src:mindplot.ImageIcon.prototype._getImageUrl(iconId)
|
||||
});
|
||||
img.setStyles({width:16,height:16,padding:"0px 2px"}).inject(familyContent);
|
||||
|
||||
var model = this.getModel();
|
||||
img.addEvent('click', function() {
|
||||
this.getModel().setValue(img.id);
|
||||
}.bind(this));
|
||||
model.setValue(this.id);
|
||||
}.bind(img));
|
||||
|
||||
count = count + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user