Subversion Repository Public Repository

ChrisCompleteCodeTrunk

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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
var actiontirecocrm = {
    "private": {
        "sender": null,
        "clearNavState": function () {
            $(".navbar-nav li").each(
                function (key, value) {                    
                    $(value).removeClass("active");
                }
            );
        },
        "setNavState": function () {
            switch (window.location.pathname) {
                case '/Prospect': {
                    $('#aProspect').addClass('active');
                    break;
                }
                case '/Prospect/Edit': {
                    $('#aProspect').addClass('active');
                    break;
                }
                case '/Customer': {
                    $('#aCustomer').addClass('active');
                    break;
                }
                case '/Customer/Edit': {
                    $('#aCustomer').addClass('active');
                    break;
                }
                case '/Report': {
                    $('#aReport').addClass('active');
                    break;
                }
                case '/Admin': {
                    $('#aAdmin').addClass('active');
                    break;
                }
                case '/Inventory': {
                    $('#aInventory').addClass('active');
                    break;
                }
                default: {
                    
                    break;
                }
            }
        },
        "doDataTables": function () {
            $('#customers').DataTable(
                {
                    responsive: true,
                    responsive: {
                        details: false
                    },
                    ordering: false,
                    deferRender: true
                }
            );
            $('#prospects').DataTable(
                {
                    responsive: true,
                    responsive: {
                        details: false
                    },
                    ordering: false,
                    deferRender: true
                }
            );
        }
    },
    "constructor": function (sender) {
        actiontirecocrm.private.sender = sender;
        actiontirecocrm.private.clearNavState();
        actiontirecocrm.private.setNavState();
        //actiontirecocrm.private.doDataTables();
        
    }
};

$(document).ready(
    function (sender) {
        actiontirecocrm.constructor(sender);
    }
);

Commits for ChrisCompleteCodeTrunk/ActionTireCo/ActionTireCo.Crm/obj/Release/Package/PackageTmp/Content/assets/js/actiontireco.crm.js

Diff revisions: vs.
Revision Author Commited Message
1 BBDSCHRIS picture BBDSCHRIS Wed 22 Aug, 2018 20:08:03 +0000