mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 15:54:55 +01:00
Bug Do not fail on empty url. This should not append on modern browsers.
This commit is contained in:
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
Block a user