Subversion Repositories SmartDukaan

Rev

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

Rev 29779 Rev 29803
Line 129... Line 129...
129
					}
129
					}
130
				}
130
				}
131
			}
131
			}
132
		});
132
		});
133
	});
133
	});
-
 
134
   
-
 
135
   
-
 
136
   $(document).on('click', ".follow-up-date", function() {
-
 
137
		serviceId = $(this).data('serviceid');
-
 
138
		fofoId =  $(this).data('fofoid');
-
 
139
		gencomment =  $(this).data('gencomment');
-
 
140
		console.log("fofoId"+fofoId);
-
 
141
		var row = $(this).closest("tr");
-
 
142
		
-
 
143
		bootbox.dialog({
-
 
144
			title : "Follow Up Date",
-
 
145
			message : "<div class=form-inline'>"
-
 
146
					+ "<label for='followUpDate'>Follow Up Date:</label>"
-
 
147
					+ "<input class='form-control' type='date' id='followUpDate'/>"
-
 
148
					+ "</div>",
-
 
149
			buttons : {
-
 
150
				cancel : {
-
 
151
					label : "CANCEL",
-
 
152
					className : 'btn-danger',
-
 
153
					callback : function() {
-
 
154
						return;
-
 
155
					}
-
 
156
				},
-
 
157
				ok : {
-
 
158
					label : "OK",
-
 
159
					className : 'btn-info',
-
 
160
					callback : function() {
-
 
161
						followUpDate = $('#followUpDate').val();
-
 
162
						
-
 
163
						if(followUpDate==""||followUpDate==undefined||followUpDate==null){
-
 
164
								alert("date can't be empty");
-
 
165
								return;
-
 
166
							}
-
 
167
						var params = {
-
 
168
								"serviceId" : serviceId,
-
 
169
								"fofoId" : fofoId,
-
 
170
								"naText": gencomment,
-
 
171
								"followUpDate": followUpDate
-
 
172
								
-
 
173
							}
-
 
174
						
-
 
175
						
-
 
176
							doPostAjaxRequestWithJsonHandler(context + "/addPartnerServiceFollowupDate",
-
 
177
									JSON.stringify(params), function(response) {
-
 
178
										alert("Successfully Submit");
-
 
179
										row.html(response);
-
 
180
										
-
 
181
									});
-
 
182
					}
-
 
183
				}
-
 
184
			}
-
 
185
		});
-
 
186
	});
134
	
187
	
135
   $(document).on('click', ".service-mark-not-active", function() {
188
   $(document).on('click', ".service-mark-not-active", function() {
136
		serviceId = $(this).data('serviceid');
189
		serviceId = $(this).data('serviceid');
137
		fofoId =  $(this).data('fofoid');
190
		fofoId =  $(this).data('fofoid');
138
		var row = $(this).closest("tr");
191
		var row = $(this).closest("tr");