Subversion Repositories SmartDukaan

Rev

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

Rev 9012 Rev 9013
Line 1... Line 1...
1
<html>
1
<html>
2
<head>
2
<head>
3
<style>
3
<style>
4
.loading-image {
4
.loading-image {
5
position: fixed;
5
position: fixed;
6
top: 50%;
6
top: 40%;
7
left: 50%;
7
left: 50%;
8
margin-top: -50px;
8
margin-top: -50px;
9
margin-left: -100px;
9
margin-left: -100px;
10
z-index: 100;
10
z-index: 100;
11
}
11
}
Line 38... Line 38...
38
        data: formData,
38
        data: formData,
39
        async: false,
39
        async: false,
40
		beforeSend: function(){
40
		beforeSend: function(){
41
        $('#ajax-spinner').show();
41
        $('#ajax-spinner').show();
42
        },
42
        },
-
 
43
		complete: function(){
-
 
44
        $('#ajax-spinner').hide();
-
 
45
        },
43
        success: function (data) {
46
        success: function (data) {
44
			if(data==""){
47
			if(data==""){
45
			    jAlert("Orders Created successfully");
48
			    jAlert("Orders Created successfully");
46
				$('#uploadSnapdealFile')[0].reset();
49
				$('#uploadOrders')[0].reset();
47
			}
50
			}
48
			else {
51
			else {
49
				jAlert("ALERT :\n"+data, 'ERROR');
52
				jAlert("ALERT :\n"+data, 'ERROR');
50
				$('#uploadSnapdealFile')[0].reset();
53
				$('#uploadOrders')[0].reset();
51
			}
54
			}
52
			$('#ajax-spinner').hide();
-
 
53
 
-
 
54
        },
55
        },
55
		 error : function() {
56
		 error : function() {
56
		 	alert("Please contact Engineering.");
57
		 	alert("Please contact Engineering.");
57
			$('#ajax-spinner').hide();
-
 
58
		 },
58
		 },
59
        cache: false,
59
        cache: false,
60
        contentType: false,
60
        contentType: false,
61
        processData: false
61
        processData: false
62
    });
62
    });