Skip to content
Snippets Groups Projects
Commit 40211fca authored by Damien's avatar Damien
Browse files

FEAT #5214 Modify service visa

parent fc7704ca
No related branches found
No related tags found
No related merge requests found
mainApp.controller("basketCtrl", ["$scope", "$http", "$compile", function($scope, $http, $compile) { mainApp.controller("basketCtrl", ["$scope", "$http", "$compile", function($scope, $http, $compile) {
$scope.gto = 'jaki';
$scope.getView = function(res_id, service, module) { $scope.getView = function(res_id, service, module) {
$http({ $http({
...@@ -16,6 +13,7 @@ mainApp.controller("basketCtrl", ["$scope", "$http", "$compile", function($scope ...@@ -16,6 +13,7 @@ mainApp.controller("basketCtrl", ["$scope", "$http", "$compile", function($scope
var elem = angular.element(response.data.result.view); var elem = angular.element(response.data.result.view);
$j('#divList').html(elem); $j('#divList').html(elem);
$scope.signatureBook = response.data.result.datas;
$compile(elem)($scope); $compile(elem)($scope);
}, function errorCallback(response) { }, function errorCallback(response) {
......
...@@ -38,7 +38,9 @@ class Visa_SignatureBookAbstract_Service extends Apps_Table_Service { ...@@ -38,7 +38,9 @@ class Visa_SignatureBookAbstract_Service extends Apps_Table_Service {
public static function getViewDatas(array $aArgs = []) { public static function getViewDatas(array $aArgs = []) {
$datas = []; $datas = [];
$datas['view'] = file_get_contents('modules/visa/Views/signatureBook.html'); $datas['view'] = file_get_contents('modules/visa/Views/signatureBook.html');
$datas['resId'] = $aArgs['resId']; $datas['datas'] = [];
$datas['datas']['resId'] = $aArgs['resId'];
$datas['datas']['headerTab'] = 1;
return $datas; return $datas;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment