[roleInheritance] Added processing pop-up to recalculate process
authorCarlos Aristu <carlos.aristu@openbravo.com>
Thu, 01 Oct 2015 11:17:54 +0200
changeset 27786 644cc4e982e2
parent 27785 6a010d6939cd
child 27787 f41e84580746
[roleInheritance] Added processing pop-up to recalculate process
web/js/recalculatePermissionsProcess.js
--- a/web/js/recalculatePermissionsProcess.js	Thu Oct 01 11:00:59 2015 +0200
+++ b/web/js/recalculatePermissionsProcess.js	Thu Oct 01 11:17:54 2015 +0200
@@ -25,6 +25,7 @@
     var roleId, selection = params.button.contextView.viewGrid.getSelectedRecords(),
         callback;
     callback = function (rpcResponse, data, rpcRequest) {
+      isc.clearPrompt();
       if (data.message.severity === 'success') {
         view.view.messageBar.setMessage(isc.OBMessageBar.TYPE_SUCCESS, data.message.title, data.message.text);
       } else {
@@ -38,6 +39,7 @@
       roleId: params.roleId,
       action: params.action
     }, {}, callback);
+    isc.showPrompt(OB.I18N.getLabel('OBUIAPP_PROCESSING') + isc.Canvas.imgHTML({src: OB.Styles.LoadingPrompt.loadingImage.src}));
   },
 
   recalculatePermissions: function (params, view) {