Subversion Repositories SmartDukaan

Rev

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

Rev 27094 Rev 27648
Line 145... Line 145...
145
						} else {
145
						} else {
146
							alert("feild can't be blank");
146
							alert("feild can't be blank");
147
						}
147
						}
148
					});
148
					});
149
 
149
 
150
	$(".schemes").live('click', function() {
150
	$(".current-margin").live('click', function() {
151
		console.log("Active Schemes Button Clicked...")
151
		console.log("Active Schemes Button Clicked...")
152
		schemes("main-content");
152
	  schemes("main-content");
-
 
153
	});
-
 
154
 
-
 
155
    $(".margin-calculator").live('click', function() {
-
 
156
		console.log("Active Schemes Button Clicked...")
-
 
157
	   marginCalculator("main-content");
153
	});
158
	});
154
 
159
 
155
	$(".schemes-download-page").live('click', function() {
160
	$(".schemes-download-page").live('click', function() {
156
		console.log("Schemes Download Clicked...")
161
		console.log("Schemes Download Clicked...")
157
		loadSchemesDownloadPage("main-content");
162
		loadSchemesDownloadPage("main-content");
Line 373... Line 378...
373
function schemes(domId) {
378
function schemes(domId) {
374
	doGetAjaxRequestHandler(context + "/getSchemes", function(response) {
379
	doGetAjaxRequestHandler(context + "/getSchemes", function(response) {
375
		$('#' + domId).html(response);
380
		$('#' + domId).html(response);
376
	});
381
	});
377
}
382
}
-
 
383
function marginCalculator(domId) {
-
 
384
	doGetAjaxRequestHandler(context + "/getMarginCalculator", function(response) {
-
 
385
		$('#' + domId).html(response);
-
 
386
	});
-
 
387
}
378
 
388
 
379
function loadSchemesDownloadPage(domId) {
389
function loadSchemesDownloadPage(domId) {
380
	doGetAjaxRequestHandler(context + "/schemes/downloadPage", function(
390
	doGetAjaxRequestHandler(context + "/schemes/downloadPage", function(
381
			response) {
391
			response) {
382
		$('#' + domId).html(response);
392
		$('#' + domId).html(response);