Subversion Repositories SmartDukaan

Rev

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

Rev 7410 Rev 7676
Line 1... Line 1...
1
 
1
 
-
 
2
 
-
 
3
function closeColorBox(){
-
 
4
	$.colorbox.close();
-
 
5
}
-
 
6
 
-
 
7
$('.link-requiring-warehouse-selection').live('click', function(){
-
 
8
	var linkurl = $(this).attr('href');
-
 
9
	$('<form id = "tempForm" onsubmit = "closeColorBox() "style = "text-align:center" method = "GET" action = "'+ linkurl +'">').appendTo('body');
-
 
10
	
-
 
11
	$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "7">Mahipalpur</input>'));
-
 
12
	$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "12">Goregaon</input></br>'));
-
 
13
	$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "13">Biwandi</input>'));
-
 
14
	$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "16">Mum-Amazon</input><br/><br/>'));
-
 
15
	$('form#tempForm').append($('<input type = "submit"  value = "Submit"/>'));
-
 
16
	
-
 
17
	$.colorbox({
-
 
18
		inline : true,
-
 
19
        width : "325px",
-
 
20
        height : "175px",
-
 
21
        opacity : "0.30",
-
 
22
        overlayClose :	true,
-
 
23
        escKey :	true,
-
 
24
        href : "#tempForm",
-
 
25
        onClosed : function() {
-
 
26
            $('#tempForm').remove();
-
 
27
        }
-
 
28
	});
-
 
29
	event.preventDefault();
-
 
30
	return false;
-
 
31
	
-
 
32
});
-
 
33
 
-
 
34
 
-
 
35
 
2
function selectWarehouseForPOCreation() {
36
function selectWarehouseForPOCreation() {
3
	$('#warehouse-selector-po-creation').show();
37
	$('#warehouse-selector-po-creation').show();
4
	$.colorbox({
38
	$.colorbox({
5
		inline : true,
39
		inline : true,
6
        width : "325px",
40
        width : "325px",