Bug Do not fail on empty url. This should not append on modern browsers.

This commit is contained in:
Paulo Gustavo Veiga 2012-08-28 00:33:27 -03:00
parent 80deb4922b
commit ed71bbc775

View File

@ -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();
}
});