Blame | Last modification | View Log | RSS feed
$('.link-requiring-orderid-for-invoice').live('click', function(){var linkurl = $(this).attr('href');$('<form id = "tempForm" target=_blank onsubmit = "closeColorBox() "style = "text-align:center" method = "GET" action = "'+ linkurl +'">').appendTo('body');$('form#tempForm').append($('<span>Specify One Order Id: </span><input type = "text" name = "oneOrderId" />'));$('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 closeColorBox(){$.colorbox.close();}