Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item14288: resolve deferred obj on close
  • Loading branch information
MichaelDaum committed Jan 30, 2017
1 parent ecf73a9 commit 5170d22
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1377,14 +1377,14 @@ $.NatEditor.prototype.dialog = function(opts) {
if (ev.keyCode == 13) {
ev.preventDefault();
$this.dialog("close");
dfd.resolve($this[0]);
}
}
});

opts.open.call(self, this, opts.data);
},
close: function(event, ui) {
dfd.resolve(this);
$(this).remove();
},
show: 'fade',
Expand Down

0 comments on commit 5170d22

Please sign in to comment.