Bug Do not fail on empty url. This should not append on modern browsers.
parent
80deb4922b
commit
ed71bbc775
|
@ -92,7 +92,9 @@ mindplot.widget.LinkEditor = new Class({
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
|
if (input.value != null && input.value.trim() != "") {
|
||||||
model.setValue(input.value);
|
model.setValue(input.value);
|
||||||
|
}
|
||||||
this.close();
|
this.close();
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
|
@ -139,5 +141,4 @@ mindplot.widget.LinkEditor = new Class({
|
||||||
show:function () {
|
show:function () {
|
||||||
this.open();
|
this.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue