Subversion Repositories SmartDukaan

Rev

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

Rev 28900 Rev 28932
Line 127... Line 127...
127
 
127
 
128
						if (confirm("Are you sure you want to submit the request") == true) {
128
						if (confirm("Are you sure you want to submit the request") == true) {
129
							doAjaxRequestWithJsonHandler(context
129
							doAjaxRequestWithJsonHandler(context
130
									+ "/partnerVerificationSubmit", "POST",
130
									+ "/partnerVerificationSubmit", "POST",
131
									jsonObject, function(response) {
131
									jsonObject, function(response) {
-
 
132
								
-
 
133
								if (response == 'true')
-
 
134
									{
-
 
135
 
-
 
136
									partnerOnboardingVerification("main-content");
-
 
137
									}
-
 
138
								else{
132
										row.html(response);
139
										row.html(response);
133
										row.css("background-color", "#F8F8FF");
140
										row.css("background-color", "#F8F8FF");
-
 
141
								   }
134
 
142
 
135
									});
143
									});
136
						}
144
						}
137
 
145
 
138
					});
146
					});
Line 145... Line 153...
145
 
153
 
146
						var row = $(this).closest("tr");
154
						var row = $(this).closest("tr");
147
						console.log(row);
155
						console.log(row);
148
 
156
 
149
						var onboardingId = $(row).find("td:eq(0)").text();
157
						var onboardingId = $(row).find("td:eq(0)").text();
-
 
158
						
-
 
159
						var datePlaned = $(row).find(
-
 
160
						"td:eq(8) input[type='date']").val();
-
 
161
			       
-
 
162
						if (datePlaned != "") {
-
 
163
							datePlaned = datePlaned + "T00:00:00";
-
 
164
			         	}
150
 
165
 
151
						var dateCompleted = $(row).find(
166
						var dateCompleted = $(row).find(
152
								"td:eq(8) input[type='date']").val();
167
								"td:eq(9) input[type='date']").val();
153
						if (dateCompleted != "") {
168
						if (dateCompleted != "") {
154
							dateCompleted = dateCompleted + "T00:00:00";
169
							dateCompleted = dateCompleted + "T00:00:00";
155
						}
170
						}
156
 
171
 
157
						var dashboardTraining = $(row).find(
172
						var dashboardTraining = $(row).find(
Line 164... Line 179...
164
						console.log("dashboardTraining" + dashboardTraining);
179
						console.log("dashboardTraining" + dashboardTraining);
165
						console.log("appTraining" + appTraining);
180
						console.log("appTraining" + appTraining);
166
 
181
 
167
						var partnerDashboardTraining = {};
182
						var partnerDashboardTraining = {};
168
						partnerDashboardTraining['onboardingId'] = onboardingId
183
						partnerDashboardTraining['onboardingId'] = onboardingId
-
 
184
						partnerDashboardTraining['datePlaned'] = datePlaned
169
						partnerDashboardTraining['dateCompleted'] = dateCompleted
185
						partnerDashboardTraining['dateCompleted'] = dateCompleted
170
						partnerDashboardTraining['dashboardTraining'] = dashboardTraining
186
						partnerDashboardTraining['dashboardTraining'] = dashboardTraining
171
						partnerDashboardTraining['appTraining'] = appTraining
187
						partnerDashboardTraining['appTraining'] = appTraining
172
 
188
 
173
						var jsonObject = JSON
189
						var jsonObject = JSON