Subversion Repositories SmartDukaan

Rev

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

Rev 25736 Rev 26131
Line 63... Line 63...
63
			raisePO();
63
			raisePO();
64
		} else {
64
		} else {
65
			return;
65
			return;
66
		}
66
		}
67
	});
67
	});
-
 
68
 
68
	$("li.mk_counter_size").live('click', function() {
69
	$("li.mk_counter_size").live('click', function() {
69
		if ($(this).hasClass('active')) {
70
		if ($(this).hasClass('active')) {
70
			return;
71
			return;
71
		}
72
		}
72
		currentFofoId = 0;
73
		currentFofoId = 0;
Line 78... Line 79...
78
			$("table.brandPerformance").toggle();
79
			$("table.brandPerformance").toggle();
79
			$("li.brandLi").removeClass('active');
80
			$("li.brandLi").removeClass('active');
80
			$(this).addClass('active');
81
			$(this).addClass('active');
81
		}
82
		}
82
	});
83
	});
-
 
84
	
-
 
85
	$(".previous-month").live('click',function(){
-
 
86
		currentFofoId = 0;
-
 
87
		counterSize = '';
-
 
88
		loadPreviousMonthIndent('main-content');
-
 
89
	});
-
 
90
	
-
 
91
	$(".current-month").live('click',function(){
-
 
92
		currentFofoId = 0;
-
 
93
		counterSize = '';
-
 
94
		loadIndent('main-content');
-
 
95
	});
83
	$(document).on('click','a.create_indent',  function() {
96
	$(document).on('click','a.create_indent',  function() {
84
		currentFofoId = 0;
97
		currentFofoId = 0;
85
		counterSize = '';
98
		counterSize = '';
86
		loadIndent("main-content");
99
		loadIndent("main-content");
87
	});
100
	});
Line 314... Line 327...
314
			+ counterSize;
327
			+ counterSize;
315
	doAjaxRequestHandler(context + url, "GET", function(response) {{}
328
	doAjaxRequestHandler(context + url, "GET", function(response) {{}
316
		$('#' + domId).html(response);
329
		$('#' + domId).html(response);
317
	});
330
	});
318
}
331
}
-
 
332
 
-
 
333
function loadPreviousMonthIndent(domId) {
-
 
334
	var url = "/indent/loadIndentPreviousMonth?fofoId=" + currentFofoId + "&counterSize="
-
 
335
			+ counterSize;
-
 
336
	doAjaxRequestHandler(context + url, "GET", function(response) {{}
-
 
337
		$('#' + domId).html(response);
-
 
338
	});
-
 
339
}
319
function downloadIndent() {
340
function downloadIndent() {
320
	var url = "/indent/download?fofoId=" + currentFofoId + "&counterSize="
341
	var url = "/indent/download?fofoId=" + currentFofoId + "&counterSize="
321
			+ counterSize;
342
			+ counterSize;
322
	doAjaxGetDownload(url, "indent.csv")
343
	doAjaxGetDownload(url, "indent.csv")
323
}
344
}