[IMP] web_editor: in link dialog, do not hide 'open in new page' if empty link
This commit is contained in:
@@ -1150,7 +1150,7 @@ var LinkDialog = Dialog.extend({
|
||||
},
|
||||
onkeyup: function (e) {
|
||||
var $e = $(e.target);
|
||||
var is_link = ($e.val()||'').length && $e.val().indexOf("@") === -1;
|
||||
var is_link = $e.val().indexOf("@") === -1;
|
||||
this.$('input.window-new').closest("div").toggle(is_link);
|
||||
this.preview();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user