From 8d1e1afb6bcd2bd9a3d70a2ebc181ba930a784ea Mon Sep 17 00:00:00 2001
From: Armand Bahi <armand.bahi@veremes.com>
Date: Wed, 2 Jan 2019 11:04:19 +0100
Subject: [PATCH] =?UTF-8?q?D=C3=A9clenchement=20de=20formReader.loadform?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../javascript/app/VisualizerMode/FormMode.js      | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/vitis/client/javascript/externs/studio/javascript/app/VisualizerMode/FormMode.js b/src/vitis/client/javascript/externs/studio/javascript/app/VisualizerMode/FormMode.js
index 5c898e9a..86872e18 100755
--- a/src/vitis/client/javascript/externs/studio/javascript/app/VisualizerMode/FormMode.js
+++ b/src/vitis/client/javascript/externs/studio/javascript/app/VisualizerMode/FormMode.js
@@ -129,9 +129,8 @@ nsVFB.nsVisualizerMode.FormMode.prototype.visualizerFormModeController = functio
 	            }
 	        }
 
-
             /**
-             * !Important! utilisation d'un pointeur permet que les changements 
+             * !Important! utilisation d'un pointeur permet que les changements
              * de oFormDefinition affecteront getJsonOutput
              */
             $scope['oFormDefinition'] = data;
@@ -148,6 +147,7 @@ nsVFB.nsVisualizerMode.FormMode.prototype.visualizerFormModeController = functio
 
             // Refresh le formReader
             angular.element($('#studio_form_reader').children()).scope()['ctrl'].refreshForm();
+            angular.element($('#studio_form_reader').children()).scope().$broadcast('loadForm');
 
         } else {
             oVFB.log('visualizerFormModeController. Load JSON form fail: ' + $scope['selected_form_type'] + ' undefined in ', data);
@@ -268,8 +268,8 @@ nsVFB.nsVisualizerMode.FormMode.prototype.visualizerFormModeController.prototype
 };
 
 /**
- * Recusive function that remove the selected elements: 
- * if sFormDefinitionName is not defined the function will remove from all the names 
+ * Recusive function that remove the selected elements:
+ * if sFormDefinitionName is not defined the function will remove from all the names
  * if aRows is not defined the function will remove from $scope['oFormDefinition'] and oVFB.getJsonOutput()
  * @param {string|undefined} sFormDefinitionName
  * @export
@@ -305,7 +305,7 @@ nsVFB.nsVisualizerMode.FormMode.prototype.visualizerFormModeController.prototype
 };
 
 /**
- * Remove the selected and hovered elements from sFormDefinitionName, 
+ * Remove the selected and hovered elements from sFormDefinitionName,
  * if sFormDefinitionName is not defined the function will remove from all the names in $scope['oFormDefinition']
  * @param {string|undefined} sFormDefinitionName
  * @export
@@ -338,8 +338,8 @@ nsVFB.nsVisualizerMode.FormMode.prototype.visualizerFormModeController.prototype
 };
 
 /**
- * Recusive function that remove the selected and hovered elements: 
- * if sFormDefinitionName is not defined the function will remove from all the names 
+ * Recusive function that remove the selected and hovered elements:
+ * if sFormDefinitionName is not defined the function will remove from all the names
  * if aRows is not defined the function will remove from $scope['oFormDefinition'] and oVFB.getJsonOutput()
  * @param {string|undefined} sFormDefinitionName
  * @export
-- 
GitLab