From bb4374510f77e501ce5de4f4b255acffbd8c2632 Mon Sep 17 00:00:00 2001 From: seshukm Date: Fri, 3 Mar 2017 12:33:18 +0530 Subject: Province Mgr defect fixing GSO-241 Change-Id: I4505aa430daf2df46c4857ad9723472c2235657c Signed-off-by: seshukm --- provincemgr/src/main/webapp/provincemgr/index.html | 11 ++++------- provincemgr/src/main/webapp/provincemgr/js/app.js | 15 ++++++++++++--- provincemgr/src/main/webapp/provincemgr/js/rest.js | 2 +- .../src/main/webapp/provincemgr/templates/management.html | 12 +++++------- 4 files changed, 22 insertions(+), 18 deletions(-) (limited to 'provincemgr') diff --git a/provincemgr/src/main/webapp/provincemgr/index.html b/provincemgr/src/main/webapp/provincemgr/index.html index 8e4d9b03..f53edcca 100644 --- a/provincemgr/src/main/webapp/provincemgr/index.html +++ b/provincemgr/src/main/webapp/provincemgr/index.html @@ -24,19 +24,16 @@ Province Management - - - + - + - - + - + diff --git a/provincemgr/src/main/webapp/provincemgr/js/app.js b/provincemgr/src/main/webapp/provincemgr/js/app.js index 1af3d538..b8979dd9 100644 --- a/provincemgr/src/main/webapp/provincemgr/js/app.js +++ b/provincemgr/src/main/webapp/provincemgr/js/app.js @@ -135,7 +135,9 @@ var app = angular.module("ProvinceManagementApp", ["ui.router", "ngTable"]) $scope.closeModal = function() { console.log("Closing Modal..."); - $('#managementDialog').modal('hide'); + $('#uniModal').modal('hide'); + console.log("@@@@@@@@@@@@@@@@@@"); + $state.reload(); } $scope.showAddModal = function() { @@ -207,8 +209,15 @@ var app = angular.module("ProvinceManagementApp", ["ui.router", "ngTable"]) "text": "OK", "action": "deleteConfirmation("+id+")" }] }}; - var html = Mustache.to_html(dialog_tpl, error.err_data); - $($compile(html)($scope)).modal({backdrop: "static"}); + angular.forEach($scope.checkboxes.items, function(value) { + if(value) { + checkbox = true; + } + }); + if (checkbox || (typeof id !== "undefined")) { + var html = Mustache.to_html(dialog_tpl, error.err_data); + $($compile(html)($scope)).modal({backdrop: "static"}); + } } $scope.deleteConfirmation = function(id) { diff --git a/provincemgr/src/main/webapp/provincemgr/js/rest.js b/provincemgr/src/main/webapp/provincemgr/js/rest.js index 1192c848..6432ca16 100644 --- a/provincemgr/src/main/webapp/provincemgr/js/rest.js +++ b/provincemgr/src/main/webapp/provincemgr/js/rest.js @@ -18,7 +18,7 @@ app.factory("provinceDataService", function($http,DataService, $log){ - var uri = 'http://192.168.9.13:18008'; + var uri ;//'http://192.168.9.13:18008'; return { getAllProvinceData : function() { /*return $http({ diff --git a/provincemgr/src/main/webapp/provincemgr/templates/management.html b/provincemgr/src/main/webapp/provincemgr/templates/management.html index 819c1534..934eff09 100644 --- a/provincemgr/src/main/webapp/provincemgr/templates/management.html +++ b/provincemgr/src/main/webapp/provincemgr/templates/management.html @@ -57,8 +57,8 @@ - +