summaryrefslogtreecommitdiff
path: root/iframe.js
blob: 4b7d2acf633d923d1f0f6a63e6287c3c93c4b898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$("#lnkcolorbox").click(function() {
	$.fancybox.open({
		href : 'colors.htm',
		width  : 700,           // set the width
		height : 610,
		fitToView : true,
		autoDimensions:false,
		autoSize:false,
		type : 'iframe',
		closeBtn  : false,
		padding : 5,
		beforeShow : function(){					
			$('.fancybox-iframe').contents().find('#submitvalue').click(function(){
				$('.fancybox-iframe').contents().find('form').submit();						
				$.fancybox.close();
			});					
		},				
		beforeClose : function(){
			x = $('.fancybox-iframe').contents().find('#namespace').val();
		},
		afterClose: function(){
			$('#img-hue').val(x);
		}
	});
});