From 0534d95b392e0e426d58abdd604c6bfd5321af21 Mon Sep 17 00:00:00 2001 From: Anthony Borghi <anthony.borghi@veremes.com> Date: Mon, 3 Dec 2018 15:12:56 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20bug=20=C3=A0=20l'ajout=20d'?= =?UTF-8?q?une=20demande=20(choix=20du=20projet=20FME=20vide)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/module_gtf/module/javascript/script_module.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/module_gtf/module/javascript/script_module.js b/src/module_gtf/module/javascript/script_module.js index 0aae7bb9..1b61f04f 100755 --- a/src/module_gtf/module/javascript/script_module.js +++ b/src/module_gtf/module/javascript/script_module.js @@ -1116,7 +1116,9 @@ vitisApp.on('appMainDrtvLoaded', function () { $timeout(function () { // Evènement sur le <select> des projets Fme. document.getElementById("workspace_id").addEventListener("change", function () { - scope["loadSubForm"](this.value, scope, element); + angular.element(element).empty(); + if (this.value != "") + scope["loadSubForm"](this.value, scope, element); }); }, 100); } else { -- GitLab