Subversion Repositories SmartDukaan

Rev

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

Rev 24349 Rev 24680
Line 12... Line 12...
12
			});
12
			});
13
 
13
 
14
	$(".active-store").live('click', function() {
14
	$(".active-store").live('click', function() {
15
		storeInfo("main-content");
15
		storeInfo("main-content");
16
	});
16
	});
-
 
17
	$(".inactive-store").live('click', function() {
-
 
18
		inactiveStoreInfo("main-content");
-
 
19
	});
17
	$(".retailer-info").live('click', function() {
20
	$(".retailer-info").live('click', function() {
18
		retailerInfo("main-content");
21
		retailerInfo("main-content");
19
	});
22
	});
20
 
23
 
21
	$("#retailer-details-search-text").live("keyup", function(e) {
24
	$("#retailer-details-search-text").live("keyup", function(e) {
Line 206... Line 209...
206
function storeInfo(domId) {
209
function storeInfo(domId) {
207
	doGetAjaxRequestHandler(context + "/getAllStores", function(response) {
210
	doGetAjaxRequestHandler(context + "/getAllStores", function(response) {
208
		$('#' + domId).html(response);
211
		$('#' + domId).html(response);
209
	});
212
	});
210
}
213
}
-
 
214
function inactiveStoreInfo(domId) {
-
 
215
	doGetAjaxRequestHandler(context + "/getAllInactiveStores", function(response) {
-
 
216
		$('#' + domId).html(response);
-
 
217
	});
-
 
218
}
211
function deactivateStore(domId, fofoId) {
219
function deactivateStore(domId, fofoId) {
212
	doPostAjaxRequestHandler(context + "/deactivateStore?fofoId=" + fofoId,
220
	doPostAjaxRequestHandler(context + "/deactivateStore?fofoId=" + fofoId,
213
			function(response) {
221
			function(response) {
214
				if (response == "true") {
222
				if (response == "true") {
215
					alert("successfully deactivated!");
223
					alert("successfully deactivated!");