mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-29 17:04:59 +01:00
fixing some old refs
This commit is contained in:
parent
3d2c251b03
commit
efd8c6e867
@ -66,7 +66,7 @@ mindplot.widget.ColorPalettePanel = new Class({
|
|||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
_.each(colorCells, function (elem) {
|
_.each(colorCells, function (elem) {
|
||||||
$(elem).on('click', function () {
|
$(elem).on('click', function () {
|
||||||
var color = elem.css("background-color");
|
var color = $(elem).css("background-color");
|
||||||
model.setValue(color);
|
model.setValue(color);
|
||||||
this.hide();
|
this.hide();
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
@ -47,6 +47,9 @@ mindplot.widget.FloatingTip = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
hide: function (element) {
|
hide: function (element) {
|
||||||
|
if (element) {
|
||||||
|
console.error('element is not necessary');
|
||||||
|
}
|
||||||
this.element.popover('hide');
|
this.element.popover('hide');
|
||||||
this.fireEvent('hide', [this, element]);
|
this.fireEvent('hide', [this, element]);
|
||||||
return this;
|
return this;
|
||||||
|
@ -59,7 +59,7 @@ mindplot.widget.IconPanel = new Class({
|
|||||||
var panel = this;
|
var panel = this;
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
img.on('click', function (event) {
|
img.on('click', function (event) {
|
||||||
model.setValue(this.id);
|
model.setValue(this.attr('id'));
|
||||||
panel.hide();
|
panel.hide();
|
||||||
}.bind(img));
|
}.bind(img));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user