Subversion Repositories SmartDukaan

Rev

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

Rev 37187 Rev 37651
Line 10... Line 10...
10
 
10
 
11
    $(document).on('click', ".partner-health", function () {
11
    $(document).on('click', ".partner-health", function () {
12
        loadPartnerHealth("main-content");
12
        loadPartnerHealth("main-content");
13
    });
13
    });
14
 
14
 
-
 
15
    // Sidebar "Import Meta Leads". The menu row's action_class becomes the anchor's css class,
-
 
16
    // which is how every other menu entry in this app is wired.
-
 
17
    $(document).on('click', ".meta-lead-import", function () {
-
 
18
        doGetAjaxRequestHandler(context + "/lms/meta-import", function (response) {
-
 
19
            $('#main-content').html(response);
-
 
20
        });
-
 
21
    });
-
 
22
 
-
 
23
    // Lead id -> LMS record. Delegated because the lead lists are re-rendered by ajax, and the
-
 
24
    // record itself is a fragment that replaces #main-content, same as every other screen here.
-
 
25
    $(document).on('click', ".lms-open-record", function (e) {
-
 
26
        e.preventDefault();
-
 
27
        e.stopPropagation();
-
 
28
        var leadId = $(this).data('leadid');
-
 
29
        if (!leadId) { return; }
-
 
30
        doGetAjaxRequestHandler(context + "/leadRecord?leadId=" + leadId, function (response) {
-
 
31
            $('#main-content').html(response);
-
 
32
        });
-
 
33
    });
-
 
34
 
15
    $(document).on('click', ".lead-detail", function () {
35
    $(document).on('click', ".lead-detail", function () {
16
        loadLeadDetail("main-content");
36
        loadLeadDetail("main-content");
17
    });
37
    });
18
 
38
 
19
 
39