Subversion Repositories SmartDukaan

Rev

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

Rev 23796 Rev 23855
Line 2... Line 2...
2
	$("a.allocation_po").live('click', function(){
2
	$("a.allocation_po").live('click', function(){
3
		currentFofoId=0;
3
		currentFofoId=0;
4
		counterSize='';
4
		counterSize='';
5
		loadIndent('main-content');
5
		loadIndent('main-content');
6
	});
6
	});
-
 
7
	$("button.mk_pause_button").live('click', function(){
-
 
8
		var clickedButton = $(this);
-
 
9
		var description = clickedButton.data("description");
-
 
10
		var tagId = clickedButton.data("id");
-
 
11
		if(confirm("Confirm Pause " + clickedButton.data("description") + "?")) {
-
 
12
			doPostAjaxRequestWithJsonHandler(context+"/indent/confirm-pause/" + tagId, {}, function(response) {
-
 
13
				if(response) {
-
 
14
					 indentTable
-
 
15
				        .row( clickedButton.closest('tr') )
-
 
16
				        .remove()
-
 
17
				        .draw();
-
 
18
					alert("Item Paused Successfully");
-
 
19
				} else {
-
 
20
					alert("Could not pause item");
-
 
21
				}
-
 
22
			});
-
 
23
		}
-
 
24
	});
7
	$("button.raise_po").live('click', function(){
25
	$("button.raise_po").live('click', function(){
8
		if (confirm("Please confirm the PO")) {
26
		if (confirm("Please confirm the PO")) {
9
			raisePO();
27
			raisePO();
10
		} else {
28
		} else {
11
			return;
29
			return;