Import submit button closes dialog
This commit is contained in:
parent
853b57e57c
commit
8e47da19a4
|
@ -518,6 +518,7 @@ T.prototype.n = function() {
|
|||
this.state.clear();
|
||||
ka(this.state, $("#import-area").val(), B(this.view, new l(this.view.canvas.width / 2, this.view.canvas.height / 2)));
|
||||
$("#import-area").val("");
|
||||
$(".dialog").removeClass("visible");
|
||||
}.bind(this));
|
||||
$("#use-lines-button").click(function() {
|
||||
$(".dialog").removeClass("visible");
|
||||
|
|
|
@ -119,15 +119,16 @@ ascii.Controller.prototype.installBindings = function() {
|
|||
this.view.canvas.width / 2,
|
||||
this.view.canvas.height / 2)));
|
||||
$('#import-area').val('');
|
||||
$('.dialog').removeClass('visible');
|
||||
}.bind(this));
|
||||
|
||||
$('#use-lines-button').click(function(e) {
|
||||
$('.dialog').removeClass('visible');
|
||||
$('.dialog').removeClass('visible');
|
||||
this.view.setUseLines(true);
|
||||
}.bind(this));
|
||||
|
||||
$('#use-ascii-button').click(function(e) {
|
||||
$('.dialog').removeClass('visible');
|
||||
$('.dialog').removeClass('visible');
|
||||
this.view.setUseLines(false);
|
||||
}.bind(this));
|
||||
|
||||
|
|
Loading…
Reference in New Issue