From 9c964cba1070aca27408b8bacab0d3584365f600 Mon Sep 17 00:00:00 2001
From: Fulup Ar Foll <fulup@iot.bzh>
Date: Sun, 29 May 2016 20:55:18 +0200
Subject: Fix runmode

---
 afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'afm-client/app/Frontend/widgets/ActionButtons')

diff --git a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
index a10030c..20b0b38 100644
--- a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
+++ b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
@@ -93,8 +93,8 @@
                                         }
                                         scope.runstatus="start";
                                         notifySuccess (action, jresp);
-					if(response.data.response.uri)
-                                            scope.winapp= $window.open(response.data.response.uri.replace("%h", $location.host()));                                            
+					if(jresp.response.uri)
+                                            scope.winapp= $window.open(jresp.response.uri.replace("%h", $location.host()));                                            
                                     });
                                     break;
                                     
@@ -132,7 +132,7 @@
                                                 close   : closeModInfo,
                                                 icon    : scope.icon,
                                                 label   : scope.appID,
-                                                detail  : response.data.response
+                                                detail  : jresp.response
                                             }, template : tmplDetail
                                         }; 
                                         // Popup Modal to render application data
-- 
cgit