Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12653 manish.sha 1
$('.link-requiring-orderid-for-invoice').live('click', function(){
2
	var linkurl = $(this).attr('href');
3
	$('<form id = "tempForm" target=_blank onsubmit = "closeColorBox() "style = "text-align:center" method = "GET" action = "'+ linkurl +'">').appendTo('body');
4
 
5
	$('form#tempForm').append($('<span>Specify One Order Id: </span><input type = "text" name = "oneOrderId" />'));
6
	$('form#tempForm').append($('<input type = "submit"  value = "Submit"/>'));
7
 
8
	$.colorbox({
9
		inline : true,
10
        width : "325px",
11
        height : "200px",
12
        opacity : "0.30",
13
        overlayClose :	true,
14
        escKey :	true,
15
        href : "#tempForm",
16
        onClosed : function() {
17
            $('#tempForm').remove();
18
        }
19
	});
20
	event.preventDefault();
21
	return false;
22
 
23
});
24
 
25
function closeColorBox(){
26
	$.colorbox.close();
27
}