mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27: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.preventDefault();
|
||||
|
||||
if (input.value != null && input.value.trim() != "") {
|
||||
model.setValue(input.value);
|
||||
}
|
||||
this.close();
|
||||
}.bind(this));
|
||||
|
||||
@ -139,5 +141,4 @@ mindplot.widget.LinkEditor = new Class({
|
||||
show:function () {
|
||||
this.open();
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user