Subversion Repositories SmartDukaan

Rev

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

Rev 26211 Rev 26390
Line 110... Line 110...
110
										// upload");
110
										// upload");
111
										if (confirm('Retailer Document has been selected, Do you want to upload ?')) {
111
										if (confirm('Retailer Document has been selected, Do you want to upload ?')) {
112
											var fileSelector = $('#retailerDocument')[0];
112
											var fileSelector = $('#retailerDocument')[0];
113
											if (fileSelector != undefined
113
											if (fileSelector != undefined
114
													&& fileSelector.files[0] != undefined) {
114
													&& fileSelector.files[0] != undefined) {
115
												var url = webApiScheme + '://'
-
 
116
														+ webApiHost + ':'
-
 
117
														+ webApiPort
-
 
118
														+ webApiRoot
-
 
119
														+ '/document-upload';
115
												var url = context + '/document-upload';
120
 
116
 
121
												console.log(url);
117
												console.log(url);
122
												var file = this.files[0];
118
												var file = this.files[0];
123
												doAjaxUploadRequestHandler(
119
												doAjaxUploadRequestHandler(
124
														url,
120
														url,
Line 157... Line 153...
157
										// been selected, Do you want to
153
										// been selected, Do you want to
158
										// upload");
154
										// upload");
159
										console.log($(this).attr("id"));
155
										console.log($(this).attr("id"));
160
										if (confirm('Retailer Shop Document has been selected, Do you want to upload ?')) {
156
										if (confirm('Retailer Shop Document has been selected, Do you want to upload ?')) {
161
											var fileSelector = $(this)[0];
157
											var fileSelector = $(this)[0];
162
											var url = webApiScheme + '://'
-
 
163
													+ webApiHost + ':'
-
 
164
													+ webApiPort + webApiRoot
-
 
165
													+ '/document-upload';
158
											var url =  context + '/document-upload';
166
											var file = this.files[0];
159
											var file = this.files[0];
167
											var retailerShopDocumentKey = $(
160
											var retailerShopDocumentKey = $(
168
													this).attr("id");
161
													this).attr("id");
169
											doAjaxUploadRequestHandler(
162
											doAjaxUploadRequestHandler(
170
													url,
163
													url,