OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-10-14 b74776268dd3eb2bc57744928d6f7150ffcd4ec2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"use strict";
angular.module("oitozero.ngSweetAlert", []).factory("SweetAlert", ["$rootScope", function ($rootScope) {
    var swal = window.swal, self = {
        swal : function (arg1, arg2, arg3) {
            $rootScope.$evalAsync(function () {
                "function" == typeof arg2 ? swal(arg1, function (isConfirm) {
                    $rootScope.$evalAsync(function () {
                        arg2(isConfirm)
                    })
                }, arg3) : swal(arg1, arg2, arg3)
            })
        }, success : function (title, message) {
            $rootScope.$evalAsync(function () {
                swal(title, message, "success")
            })
        }, error : function (title, message) {
            $rootScope.$evalAsync(function () {
                swal(title, message, "error")
            })
        }, warning : function (title, message) {
            $rootScope.$evalAsync(function () {
                swal(title, message, "warning")
            })
        }, info : function (title, message) {
            $rootScope.$evalAsync(function () {
                swal(title, message, "info")
            })
        }, showInputError : function (message) {
            $rootScope.$evalAsync(function () {
                swal.showInputError(message)
            })
        }, close : function () {
            $rootScope.$evalAsync(function () {
                swal.close()
            })
        }
    };
    return self
}]);