Rev 10931 | Rev 12729 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
function closeColorBox(){$.colorbox.close();}$('.link-requiring-warehouse-selection').live('click', function(){var linkurl = $(this).attr('href');$('<form id = "tempForm" onsubmit = "closeColorBox() "style = "text-align:center" method = "GET" action = "'+ linkurl +'">').appendTo('body');$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "7">Mahipalpur</input>'));$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "12">Goregaon</input></br>'));$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "13">Biwandi</input>'));$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "16">Mum-Amazon</input><br/>'));$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "1765">Bangalore</input>'));$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "1768">Bangalore-SR</input><br/>'));$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "1771">BAN-AMZ/Bangalore</input><br/><br/>'));$('form#tempForm').append($('<input type = "submit" value = "Submit"/>'));$.colorbox({inline : true,width : "325px",height : "200px",opacity : "0.30",overlayClose : true,escKey : true,href : "#tempForm",onClosed : function() {$('#tempForm').remove();}});event.preventDefault();return false;});function selectWarehouseForPOCreation() {$('#warehouse-selector-po-creation').show();$.colorbox({inline : true,width : "325px",height : "200px",opacity : "0.30",overlayClose : true,escKey : true,href : "#warehouse-selector-po-creation",onClosed : function() {$("#warehouse-selector-po-creation").hide();$('#warehouse-selection-error').html("");}});event.preventDefault();return false;}function selectWarehouseForListingPO() {$('#warehouse-selector-po-recieve').show();$.colorbox({inline : true,width : "325px",height : "200px",opacity : "0.30",overlayClose : true,escKey : true,href : "#warehouse-selector-po-recieve",onClosed : function() {$("#warehouse-selector-po-recieve").hide();$('#warehouse-selection-error').html("");}});event.preventDefault();return false;}function openPOCreationPage() {$.colorbox.close();warehouseId = $("#warehouse-selector-po-creation input[name='warehouse']:checked").val();if(warehouseId != 'undefined') {this.location.href = "/inventory/purchase-order/new?warehouseId="+warehouseId;} else {$('#warehouse-selection-error').html("<span>Please select warehouse</span>");}}function showOpenPOpage() {$.colorbox.close();warehouseId = $("#warehouse-selector-po-recieve input[name='warehouse']:checked").val();if(warehouseId != 'undefined') {this.location.href = "/inventory/purchase-order?warehouseId="+warehouseId;} else {$('#warehouse-selection-error').html("<span>Please select warehouse</span>");}}