Subversion Repositories SmartDukaan

Rev

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

Rev 24161 Rev 24349
Line 32... Line 32...
32
			deactivateStore("main-content", fofoId);
32
			deactivateStore("main-content", fofoId);
33
		}
33
		}
34
 
34
 
35
	});
35
	});
36
 
36
 
-
 
37
	$(".extend-billing").live('click', function() {
-
 
38
		var fofoId = $(this).data("fofoid");
-
 
39
		console.log(fofoId);
-
 
40
		if (confirm("Are you sure you want to extend Billing?")) {
-
 
41
			extendBilling($(this).parent(), fofoId);
-
 
42
		}
-
 
43
		
-
 
44
	});
-
 
45
 
37
	$('#retailerAddressState').live('change', function() {
46
	$('#retailerAddressState').live('change', function() {
38
		var stateName = $(this).find('option:selected').text();
47
		var stateName = $(this).find('option:selected').text();
39
		loadDistrictNames(stateName);
48
		loadDistrictNames(stateName);
40
	});
49
	});
41
 
50
 
Line 207... Line 216...
207
					storeInfo(domId);
216
					storeInfo(domId);
208
				}
217
				}
209
 
218
 
210
			});
219
			});
211
}
220
}
-
 
221
function extendBilling(container, fofoId) {
-
 
222
	doPostAjaxRequestHandler(context + "/extendBilling?fofoId=" + fofoId,
-
 
223
			function(response) {
-
 
224
			if (isFinite(response)) {
-
 
225
				alert("successfully deactivated!");
-
 
226
				container.html("Billing extended upto " + moment().add(1,'day').format("DD-MM-YY") + " Grace count(" + response + ")");
-
 
227
			}
-
 
228
	});
-
 
229
}
212
 
230
 
213
function updateLocationButton(id) {
231
function updateLocationButton(id) {
214
 
232
 
215
	var userId = id;
233
	var userId = id;
216
	var name = $('#personName').val();
234
	var name = $('#personName').val();