Subversion Repositories SmartDukaan

Rev

Rev 27516 | Rev 27755 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27516 Rev 27754
Line 1... Line 1...
1
$(function () {
1
$(function () {
2
 
2
 
3
    $("#retailer-details-search-button").live('click', function () {
3
    $(document).on('click', "#retailer-details-search-button", function () {
4
        searchContent = $("#retailer-details-search-text").val();
4
        searchContent = $("#retailer-details-search-text").val();
5
        if (typeof (searchContent) == "undefined" || !searchContent) {
5
        if (typeof (searchContent) == "undefined" || !searchContent) {
6
            searchContent = "";
6
            searchContent = "";
7
        }
7
        }
8
        getRetailerDetailsByEmailIdOrMobileNumber(
8
        getRetailerDetailsByEmailIdOrMobileNumber(
9
            "retailer-details-container", searchContent);
9
            "retailer-details-container", searchContent);
10
    });
10
    });
11
 
11
 
12
    $(".active-store").live('click', function () {
12
    $(document).on('click', ".active-store", function () {
13
        storeInfo("main-content");
13
        storeInfo("main-content");
14
    });
14
    });
15
    $(".inactive-store").live('click', function () {
15
    $(document).on('click', ".inactive-store", function () {
16
        inactiveStoreInfo("main-content");
16
        inactiveStoreInfo("main-content");
17
    });
17
    });
18
    $(".retailer-info").live('click', function () {
18
    $(document).on('click', ".retailer-info", function () {
19
        retailerInfo("main-content");
19
        retailerInfo("main-content");
20
    });
20
    });
21
 
21
 
22
 
22
 
23
    $(".partner-readonly-info").live('click', function () {
23
    $(document).on('click', ".partner-readonly-info", function () {
24
        partnerInfo("main-content")
24
        partnerInfo("main-content")
25
 
25
 
26
 
26
 
27
    });
27
    });
28
 
28
 
Line 59... Line 59...
59
 
59
 
60
                    });
60
                    });
61
            }
61
            }
62
        });
62
        });
63
 
63
 
64
    $("#retailer-details-search-text").live("keyup", function (e) {
64
    $(document).on("keyup", "#retailer-details-search-text", function (e) {
65
        var keyCode = e.keyCode || e.which;
65
        var keyCode = e.keyCode || e.which;
66
        if (keyCode == 13) {
66
        if (keyCode == 13) {
67
            $("#retailer-details-search-button").click();
67
            $("#retailer-details-search-button").click();
68
        }
68
        }
69
    });
69
    });
70
 
70
 
71
    $(".deactivate-store").live('click', function () {
71
    $(document).on('click', ".deactivate-store", function () {
72
        var fofoId = $(this).data("fofoid");
72
        var fofoId = $(this).data("fofoid");
73
        console.log(fofoId);
73
        console.log(fofoId);
74
        if (confirm("Are you sure you want to deactivate store!") == true) {
74
        if (confirm("Are you sure you want to deactivate store!") == true) {
75
            deactivateStore("main-content", fofoId);
75
            deactivateStore("main-content", fofoId);
76
        }
76
        }
77
 
77
 
78
    });
78
    });
79
    $(".login_as").live('click', function () {
79
    $(document).on('click', ".login_as", function () {
80
        var fofoId = $('#partnerId').val();
80
        var fofoId = $('#partnerId').val();
81
        loginAsPartner(fofoId);
81
        loginAsPartner(fofoId);
82
 
82
 
83
    });
83
    });
84
 
84
 
85
    $(".extend-billing").live('click', function () {
85
    $(document).on('click', ".extend-billing", function () {
86
        var fofoId = $(this).data("fofoid");
86
        var fofoId = $(this).data("fofoid");
87
        console.log(fofoId);
87
        console.log(fofoId);
88
        if (confirm("Are you sure you want to extend Billing?")) {
88
        if (confirm("Are you sure you want to extend Billing?")) {
89
            extendBilling($(this).parent(), fofoId);
89
            extendBilling($(this).parent(), fofoId);
90
        }
90
        }
91
 
91
 
92
    });
92
    });
93
 
93
 
94
    /*
94
    /*
95
     * $('#retailerAddressState').live('change', function() { var stateName =
95
     * $(document).on('change', '#retailerAddressState', function() { var stateName =
96
     * $(this).find('option:selected').text();
96
     * $(this).find('option:selected').text();
97
     *
97
     *
98
     * loadDistrictNames(stateName); });
98
     * loadDistrictNames(stateName); });
99
     */
99
     */
100
 
100
 
101
 
101
 
102
    $("#location").live('click', function () {
102
    $(document).on('click', "#location", function () {
103
        if ($(this).is(":checked")) {
103
        if ($(this).is(":checked")) {
104
 
104
 
105
            $("#divLocation").show();
105
            $("#divLocation").show();
106
 
106
 
107
        } else {
107
        } else {