Subversion Repositories SmartDukaan

Rev

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

Rev 24680 Rev 24976
Line 34... Line 34...
34
		if (confirm("Are you sure you want to deactivate store!") == true) {
34
		if (confirm("Are you sure you want to deactivate store!") == true) {
35
			deactivateStore("main-content", fofoId);
35
			deactivateStore("main-content", fofoId);
36
		}
36
		}
37
 
37
 
38
	});
38
	});
-
 
39
	$(".login_as").live('click', function() {
-
 
40
		var fofoId = $(this).data("fofoid");
-
 
41
		loginAsPartner(fofoId);
-
 
42
		
-
 
43
	});
39
 
44
 
40
	$(".extend-billing").live('click', function() {
45
	$(".extend-billing").live('click', function() {
41
		var fofoId = $(this).data("fofoid");
46
		var fofoId = $(this).data("fofoid");
42
		console.log(fofoId);
47
		console.log(fofoId);
43
		if (confirm("Are you sure you want to extend Billing?")) {
48
		if (confirm("Are you sure you want to extend Billing?")) {
Line 224... Line 229...
224
					storeInfo(domId);
229
					storeInfo(domId);
225
				}
230
				}
226
 
231
 
227
			});
232
			});
228
}
233
}
-
 
234
function loginAsPartner(fofoId) {
-
 
235
	doPostAjaxRequestHandler(context + "/login-as-partner?fofoId=" + fofoId, function(response) {
-
 
236
		windows.create({"url": "/dashboard", "incognito": true});
-
 
237
	});
-
 
238
}
229
function extendBilling(container, fofoId) {
239
function extendBilling(container, fofoId) {
230
	doPostAjaxRequestHandler(context + "/extendBilling?fofoId=" + fofoId,
240
	doPostAjaxRequestHandler(context + "/extendBilling?fofoId=" + fofoId,
231
			function(response) {
241
			function(response) {
232
			if (isFinite(response)) {
242
			if (isFinite(response)) {
233
				alert("successfully deactivated!");
243
				alert("successfully deactivated!");