Subversion Repositories SmartDukaan

Rev

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

Rev 27202 Rev 27231
Line 18... Line 18...
18
		inactiveStoreInfo("main-content");
18
		inactiveStoreInfo("main-content");
19
	});
19
	});
20
	$(".retailer-info").live('click', function() {
20
	$(".retailer-info").live('click', function() {
21
		retailerInfo("main-content");
21
		retailerInfo("main-content");
22
	});
22
	});
-
 
23
	
-
 
24
	
-
 
25
	$(".partner-readonly-info").live('click', function() {
-
 
26
		partnerInfo("main-content")
-
 
27
	
23
 
28
 
-
 
29
	});
-
 
30
	
-
 
31
	
-
 
32
	$(".partnerInfoReadOnly")
-
 
33
	.live(
-
 
34
			'click',
-
 
35
			function() {
-
 
36
 
-
 
37
				var fofoId = $('#fofo-users').val();
-
 
38
				loginAsPartnerReadonly(fofoId);
-
 
39
			});
24
	$("#retailerAddressPinCode").live(
40
	$("#retailerAddressPinCode").live(
25
			'change',
41
			'change',
26
			function() {
42
			function() {
27
 
43
 
28
				var pincode = $('#retailerAddressPinCode').val();
44
				var pincode = $('#retailerAddressPinCode').val();
Line 236... Line 252...
236
		$('#' + domId).html(response);
252
		$('#' + domId).html(response);
237
 
253
 
238
	});
254
	});
239
 
255
 
240
}
256
}
-
 
257
function partnerInfo(domId){
-
 
258
	doGetAjaxRequestHandler(context + "/getPartnerReadonlyInfo", function(response) {
-
 
259
		$('#' + domId).html(response);
-
 
260
 
-
 
261
	});
-
 
262
}
241
function storeInfo(domId) {
263
function storeInfo(domId) {
242
	doGetAjaxRequestHandler(context + "/getAllStores", function(response) {
264
	doGetAjaxRequestHandler(context + "/getAllStores", function(response) {
243
		$('#' + domId).html(response);
265
		$('#' + domId).html(response);
244
	});
266
	});
245
}
267
}
Line 264... Line 286...
264
			function(response) {
286
			function(response) {
265
				window.create({
287
				window.create({
266
					"url" : "/dashboard",
288
					"url" : "/dashboard",
267
					"incognito" : true
289
					"incognito" : true
268
				});
290
				});
-
 
291
			});
-
 
292
}
-
 
293
 
-
 
294
function loginAsPartnerReadonly(fofoId) {
-
 
295
	doGetAjaxRequestHandler(context + "/login-as-partner-readonly?fofoId=" + fofoId,
-
 
296
			function(response) {
-
 
297
				window.create({
-
 
298
					"url" : "/dashboard",
-
 
299
					"incognito" : true
-
 
300
				});
269
			});
301
			});
270
}
302
}
271
function extendBilling(container, fofoId) {
303
function extendBilling(container, fofoId) {
272
	doPostAjaxRequestHandler(context + "/extendBilling?fofoId=" + fofoId,
304
	doPostAjaxRequestHandler(context + "/extendBilling?fofoId=" + fofoId,
273
			function(response) {
305
			function(response) {