Import submit button closes dialog

This commit is contained in:
Lewis Hemens 2014-03-26 19:53:06 +00:00
parent 853b57e57c
commit 8e47da19a4
2 changed files with 4 additions and 2 deletions

View File

@ -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");

View File

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