From 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 16 Jul 2018 18:13:55 +0530 Subject: move the options in the loop --- js/PDE/PDE.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/PDE') diff --git a/js/PDE/PDE.js b/js/PDE/PDE.js index 816eee7e..e2cbf621 100644 --- a/js/PDE/PDE.js +++ b/js/PDE/PDE.js @@ -23,9 +23,6 @@ function PDE() { return options; } PDE.prototype.set = function PDE() { - this.okk = parseBoolean(arguments[0]["okk"]) - this.rdnom = arguments[0]["rdnom"] - this.lab = arguments[0]["lab"] var label = this.graphics.exprs; var params_pde = label[1-1]; while (true) { @@ -110,7 +107,10 @@ function PDE() { this.rdnom = "PDE"; var ok1 = true; while (true) { - [this.okk,this.rdnom,this.lab] = scicos_getvalue("PLEASE, GIVE US THE BLOCK\'s NAME. ","New block\'s name :",list("str",1),label[3-1]); + var ok = true; + this.okk = parseBoolean(arguments[0]["okk"]); + this.rdnom = arguments[0]["rdnom"]; + this.lab = arguments[0]["lab"]; if (this.okk==false) { var ok1 = false; return; -- cgit