From 95186e8154f00f24e4a8497069bf4281a51a5a5b Mon Sep 17 00:00:00 2001 From: Victor Date: Mon, 7 Dec 2015 14:38:58 +0200 Subject: [PATCH] Add text on finish script --- public_html/js/Parser.js | 2 +- public_html/js/Views.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public_html/js/Parser.js b/public_html/js/Parser.js index d8c425e..58a6e6a 100644 --- a/public_html/js/Parser.js +++ b/public_html/js/Parser.js @@ -92,7 +92,7 @@ Parser.prototype.statement = function() { } if (this.match(token, TokenType.EOF)) { - //ViewActivity.getInstance().finish(); + ViewActivity.getInstance().finish(); return true; } diff --git a/public_html/js/Views.js b/public_html/js/Views.js index a664eb7..124e67e 100644 --- a/public_html/js/Views.js +++ b/public_html/js/Views.js @@ -38,6 +38,10 @@ Views.prototype.onTouch = function (e) { this.parser.next(); }; +Views.prototype.finish = function () { + this.text('{center}{html}Вернуться на главную'); +}; + Views.prototype.windowShow = function (effect) { if (this.windowTag.style.visibility !== "visible") { this.windowTag.style.visibility = "visible";