Subversion Repositories SmartDukaan

Rev

Rev 37680 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37680 Rev 37823
Line 2... Line 2...
2
 
2
 
3
 
3
 
4
    $(function () {
4
    $(function () {
5
        getVendorAheadOptions($("#typeaheadVendor"), function (selectedVendor) {
5
        getVendorAheadOptions($("#typeaheadVendor"), function (selectedVendor) {
6
            $('#vendorId').val(selectedVendor.id + "");
6
            $('#vendorId').val(selectedVendor.id + "");
-
 
7
        }, function () {
-
 
8
            return $('#warehouseMap').val();
-
 
9
        });
-
 
10
 
-
 
11
        // The supplier list depends on the warehouse, so a new warehouse clears the supplier picked for the old one.
-
 
12
        $('#warehouseMap').on('change', function () {
-
 
13
            $('#typeaheadVendor').val('');
-
 
14
            $('#vendorId').val('');
7
        });
15
        });
8
 
16
 
9
 
17
 
10
    });
18
    });
11
 
19