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();
|
this.state.clear();
|
||||||
ka(this.state, $("#import-area").val(), B(this.view, new l(this.view.canvas.width / 2, this.view.canvas.height / 2)));
|
ka(this.state, $("#import-area").val(), B(this.view, new l(this.view.canvas.width / 2, this.view.canvas.height / 2)));
|
||||||
$("#import-area").val("");
|
$("#import-area").val("");
|
||||||
|
$(".dialog").removeClass("visible");
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
$("#use-lines-button").click(function() {
|
$("#use-lines-button").click(function() {
|
||||||
$(".dialog").removeClass("visible");
|
$(".dialog").removeClass("visible");
|
||||||
|
|
|
@ -119,15 +119,16 @@ ascii.Controller.prototype.installBindings = function() {
|
||||||
this.view.canvas.width / 2,
|
this.view.canvas.width / 2,
|
||||||
this.view.canvas.height / 2)));
|
this.view.canvas.height / 2)));
|
||||||
$('#import-area').val('');
|
$('#import-area').val('');
|
||||||
|
$('.dialog').removeClass('visible');
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
$('#use-lines-button').click(function(e) {
|
$('#use-lines-button').click(function(e) {
|
||||||
$('.dialog').removeClass('visible');
|
$('.dialog').removeClass('visible');
|
||||||
this.view.setUseLines(true);
|
this.view.setUseLines(true);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
$('#use-ascii-button').click(function(e) {
|
$('#use-ascii-button').click(function(e) {
|
||||||
$('.dialog').removeClass('visible');
|
$('.dialog').removeClass('visible');
|
||||||
this.view.setUseLines(false);
|
this.view.setUseLines(false);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue