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 5c898e9ae8014f0987e471b87b0de7bb694f21c3..86872e18c1b4e658d1b5f6c10839cd58df6e80d5 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