Subversion Repositories SmartDukaan

Rev

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

Rev 34881 Rev 34900
Line 20... Line 20...
20
        JSON.stringify(formData),
20
        JSON.stringify(formData),
21
        function (response) {
21
        function (response) {
22
            if (response.responseStatus === "SUCCESS") {
22
            if (response.responseStatus === "SUCCESS") {
23
                alert('Affiliate product created successfully!');
23
                alert('Affiliate product created successfully!');
24
                $('#addAffiliateProductModal').modal('hide');
24
                $('#addAffiliateProductModal').modal('hide');
-
 
25
                $('.affiliate-product').click();
25
            } else {
26
            } else {
26
                alert('Error: ' + response.message);
27
                alert('Error: ' + response.message);
27
            }
28
            }
28
 
29
 
29
        }
30
        }
Line 96... Line 97...
96
        JSON.stringify(formData),
97
        JSON.stringify(formData),
97
        function (response) {
98
        function (response) {
98
            if (response) {
99
            if (response) {
99
                alert('Updated successfully!');
100
                alert('Updated successfully!');
100
                $('#editAffiliateProductModal').modal('hide');
101
                $('#editAffiliateProductModal').modal('hide');
-
 
102
                $('.affiliate-product').click();
101
            } else {
103
            } else {
102
                alert('Error: ' + response.message);
104
                alert('Error: ' + response.message);
103
            }
105
            }
104
        }
106
        }
105
    );
107
    );
Line 150... Line 152...
150
        JSON.stringify(formData),
152
        JSON.stringify(formData),
151
        function (response) {
153
        function (response) {
152
            if (response.responseStatus === "SUCCESS") {
154
            if (response.responseStatus === "SUCCESS") {
153
                alert('Affiliate product created successfully!');
155
                alert('Affiliate product created successfully!');
154
                $('#addAffiliateGiftModal').modal('hide');
156
                $('#addAffiliateGiftModal').modal('hide');
-
 
157
                $('.affiliate-gift').click();
155
            } else {
158
            } else {
156
                alert('Error: ' + response.message);
159
                alert('Error: ' + response.message);
157
            }
160
            }
158
 
161
 
159
        }
162
        }
Line 208... Line 211...
208
        JSON.stringify(formData),
211
        JSON.stringify(formData),
209
        function (response) {
212
        function (response) {
210
            if (response) {
213
            if (response) {
211
                alert('Updated successfully!');
214
                alert('Updated successfully!');
212
                $('#editAffiliateGiftModal').modal('hide');
215
                $('#editAffiliateGiftModal').modal('hide');
-
 
216
                $('.affiliate-gift').click();
213
            } else {
217
            } else {
214
                alert('Error: ' + response.message);
218
                alert('Error: ' + response.message);
215
            }
219
            }
216
        }
220
        }
217
    );
221
    );