aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-common/src/main/webapp/static/js/modalService.js
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2018-04-18 09:11:56 +0800
committerzhangab <zhanganbing@chinamobile.com>2018-04-18 09:12:03 +0800
commitd698af153772ca4351ad3b23fbb987fc749890af (patch)
tree8fa49f10523134f9596814ef7a30528e298ac660 /usecaseui-common/src/main/webapp/static/js/modalService.js
parentffffd8a35ae5fcea703a7427844037c07c232b92 (diff)
Fix Security/Vulnerability problems
Change-Id: Ie0f2c9e0794941d9b9a7f00a6c3d349269d98ed1 Issue-ID: USECASEUI-104 Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-common/src/main/webapp/static/js/modalService.js')
-rw-r--r--usecaseui-common/src/main/webapp/static/js/modalService.js169
1 files changed, 0 insertions, 169 deletions
diff --git a/usecaseui-common/src/main/webapp/static/js/modalService.js b/usecaseui-common/src/main/webapp/static/js/modalService.js
deleted file mode 100644
index 69f01f42..00000000
--- a/usecaseui-common/src/main/webapp/static/js/modalService.js
+++ /dev/null
@@ -1,169 +0,0 @@
-angular.module("modalServices",[]).service('modalService', ['$modal', function ($modal) {
-
-
- this.showSuccess = function(heading, messageBody){
- var modalInstance = $modal.open({
- templateUrl: 'modal_informative.html',
- controller: 'modalpopupController',
- resolve: {
- message: function () {
- $(".overlayed").css("display","none");
- $(".loadingId").css("display","none");
- var message = {
- title: heading,
- text: messageBody
- };
- return message;
- }
- }
- });
- };
- this.showFailure = function(heading, messageBody){
- var modalInstance = $modal.open({
- templateUrl: 'modal_warning.html',
- controller: 'modalpopupController',
- resolve: {
- message: function () {
- var message = {
- title: heading,
- text: messageBody
- };
- return message;
- }
- }
- });
- };
-
- this.showWarning = function(heading, messageBody){
- var modalInstance = $modal.open({
- templateUrl: 'modal_warning_message.html',
- controller: 'modalpopupController',
- resolve: {
- message: function () {
- var message = {
- title: heading,
- text: messageBody
- };
- return message;
- }
- }
- });
- };
-
- this.popupConfirmWin = function(title, msgBody, callback,dismissCallback){
- var modalInstance = $modal.open({
- templateUrl: 'confirmation_informative.html',
- controller: 'modalpopupController',
- resolve: {
- message: function () {
- var message = {
- title: title,
- text: msgBody
- };
- return message;
- }
- }
- });
- var args = Array.prototype.slice.call( arguments, 0 );
- args.splice( 0, 3);
- modalInstance.result.then(function(){
- callback.apply(null, args);
- }, function() {
- })['finally'](function(){
- modalInstance = undefined;
- });
-
- };
- this.popupConfirmWinWithCancel = function(title, msgBody, callback,dismissCallback){
- var modalInstance = $modal.open({
- templateUrl: 'confirmation_informative.html',
- controller: 'modalpopupController',
- resolve: {
- message: function () {
- var message = {
- title: title,
- text: msgBody
- };
- return message;
- }
- }
- });
- var args = Array.prototype.slice.call( arguments, 0 );
- args.splice( 0, 3);
- modalInstance.result.then(function(){
- callback.apply(null, args);
- }, function() {
- dismissCallback();
- })['finally'](function(){
- modalInstance = undefined;
- });
-
- };
- this.popupDeleteConfirmWin = function(title, msgBody, callback, argForCallBack){
- var modalInstance = $modal.open({
- templateUrl: 'confirmation_for_delete.html',
- controller: 'modalpopupController',
- resolve: {
- message: function () {
- var message = {
- title: title,
- text: msgBody
- };
- return message;
- }
- }
- });
-
- modalInstance.result.then(function(){
- callback(argForCallBack);
- }, function() {
- })['finally'](function(){
- modalInstance = undefined;
- });
-
- };
-
- this.popupSuccessRedirectWin = function(title, msgBody, redirectUrl){
- var modalInstance = $modal.open({
- templateUrl: 'modal_informative.html',
- controller: 'modalpopupController',
- resolve: {
- message: function () {
- var message = {
- title: title,
- text: msgBody
- };
- return message;
- }
- }
- });
- modalInstance.result.then(function() {
- }, function() {
- window.location.href=redirectUrl;
- })['finally'](function(){
- modalInstance = undefined;
- });
- };
-
- this.popupWarningRedirectWin = function(title, msgBody, redirectUrl){
- var modalInstance = $modal.open({
- templateUrl: 'modal_warning_message.html',
- controller: 'modalpopupController',
- resolve: {
- message: function () {
- var message = {
- title: title,
- text: msgBody
- };
- return message;
- }
- }
- });
- modalInstance.result.then(function() {
- }, function() {
- window.location.href=redirectUrl;
- })['finally'](function(){
- modalInstance = undefined;
- });
- };
- }]); \ No newline at end of file