Subversion Repositories SmartDukaan

Rev

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

Rev 36664 Rev 36806
Line 9... Line 9...
9
    var selectedDate = $("#beat-report-date").val();
9
    var selectedDate = $("#beat-report-date").val();
10
    if (!selectedDate) {
10
    if (!selectedDate) {
11
        alert("Please select a date!");
11
        alert("Please select a date!");
12
        return;
12
        return;
13
    }
13
    }
-
 
14
    var categoryId = $('#beat-report-category').val();
-
 
15
    var level = $('#beat-report-level').val();
14
    doGetAjaxRequestHandler(context + "/beat-report/data?date=" + selectedDate,
16
    var url = context + "/beat-report/data?date=" + encodeURIComponent(selectedDate);
-
 
17
    if (categoryId) url += '&categoryId=' + encodeURIComponent(categoryId);
-
 
18
    if (level) url += '&escalationType=' + encodeURIComponent(level);
-
 
19
    doGetAjaxRequestHandler(url,
15
        function (response) {
20
        function (response) {
16
            $('.beat-report-container').html(response);
21
            $('.beat-report-container').html(response);
17
        });
22
        });
18
});
23
});
19
 
24