Subversion Repositories SmartDukaan

Rev

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

Rev 30022 Rev 30033
Line 1... Line -...
1
$(document).on('click', ".send-notification", function () {
-
 
2
    let regionId = $('#regionType').val();
-
 
3
    if (regionId == "") {
-
 
4
        alert("Please Select Region");
-
 
5
    } else if ($("#typeaheaditem").size() < 9) {
-
 
6
        alert("Please Select Complete model");
-
 
7
    } else if (typeof itemCatalogId == "undefined") {
-
 
8
        alert("Model not selected");
-
 
9
    } else if (confirm("Are you sure want to send PO Notification")) {
-
 
10
        let postParams = {
-
 
11
            "regionId": regionId, "catalogId": itemCatalogId
-
 
12
        }
-
 
13
 
-
 
14
        doPostAjaxRequestWithParamsHandler(context + "po/send-notification", params, function (response) {
-
 
15
            alert("Notification sent successfully");
-
 
16
            loadModel("main-content");
-
 
17
        });
-
 
18
    }
-
 
19
});
-
 
20
 
-
 
21
$(document).on('click', 'a.notify-po', function () {
1
$(document).on('click', 'a.notify-po', function () {
22
    sendPONotification();
2
    sendPONotification();
23
});
3
});
24
 
4
 
25
function sendPONotification() {
5
function sendPONotification() {