Subversion Repositories SmartDukaan

Rev

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

Rev 19248 Rev 19251
Line 28... Line 28...
28
        type: 'POST',
28
        type: 'POST',
29
        data: formData,
29
        data: formData,
30
        async: false,
30
        async: false,
31
        success: function (data) {
31
        success: function (data) {
32
			alert(data);
32
			alert(data);
-
 
33
			$('#uploadVendorPricing')[0].reset();
33
        },
34
        },
34
		 error : function() {
35
		 error : function() {
35
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
36
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
36
		 },
37
		 },
37
        cache: false,
38
        cache: false,
Line 49... Line 50...
49
        type: 'POST',
50
        type: 'POST',
50
        data: formData,
51
        data: formData,
51
        async: false,
52
        async: false,
52
        success: function (data) {
53
        success: function (data) {
53
			alert(data);
54
			alert(data);
-
 
55
			$('#uploadItemPricing')[0].reset();
54
        },
56
        },
55
		 error : function() {
57
		 error : function() {
56
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
58
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
57
		 },
59
		 },
58
        cache: false,
60
        cache: false,
Line 60... Line 62...
60
        processData: false
62
        processData: false
61
    });
63
    });
62
    return false;
64
    return false;
63
	});
65
	});
64
	
66
	
65
	$("#uploadVendorPricing").live('submit', function(){
-
 
66
    var formData = new FormData($(this)[0]);
-
 
67
 
-
 
68
    jQuery.ajax({
-
 
69
        url: "/Support/bulk-add!addVendorItemPricing",
-
 
70
        type: 'POST',
-
 
71
        data: formData,
-
 
72
        async: false,
-
 
73
        success: function (data) {
-
 
74
			alert(data);
-
 
75
        },
-
 
76
		 error : function() {
-
 
77
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
-
 
78
		 },
-
 
79
        cache: false,
-
 
80
        contentType: false,
-
 
81
        processData: false
-
 
82
    });
-
 
83
    return false;
-
 
84
	});
-
 
85
	
67
	
86
	$("#uploadVirtualInventory").live('submit', function(){
68
	$("#uploadVirtualInventory").live('submit', function(){
87
    var formData = new FormData($(this)[0]);
69
    var formData = new FormData($(this)[0]);
88
 
70
 
89
    jQuery.ajax({
71
    jQuery.ajax({
90
        url: "/Support/bulk-add!updateVirtualInventory",
72
        url: "/Support/bulk-add!updateVirtualInventory",
91
        type: 'POST',
73
        type: 'POST',
92
        data: formData,
74
        data: formData,
93
        async: false,
75
        async: false,
94
        success: function (data) {
76
        success: function (data) {
-
 
77
			$('#uploadVirtualInventory')[0].reset();
95
			alert(data);
78
			alert(data);
96
        },
79
        },
97
		 error : function() {
80
		 error : function() {
98
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
81
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
99
		 },
82
		 },
Line 111... Line 94...
111
        url: "/Support/bulk-add!uploadItemsDtr",
94
        url: "/Support/bulk-add!uploadItemsDtr",
112
        type: 'POST',
95
        type: 'POST',
113
        data: formData,
96
        data: formData,
114
        async: false,
97
        async: false,
115
        success: function (data) {
98
        success: function (data) {
-
 
99
			$('#uploadProfitmandi')[0].reset();
116
			alert(data);
100
			alert(data);
117
        },
101
        },
118
		 error : function() {
102
		 error : function() {
119
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
103
		 	jAlert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
120
		 },
104
		 },