Subversion Repositories SmartDukaan

Rev

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

Rev 1053 Rev 1189
Line 29... Line 29...
29
		});
29
		});
30
		
30
		
31
		radBtn += '<div class="clearBoth"></div>';
31
		radBtn += '<div class="clearBoth"></div>';
32
		$(".colorSelLightBoxColor .content").html(radBtn);
32
		$(".colorSelLightBoxColor .content").html(radBtn);
33
 
33
 
34
		$.fn.colorbox({inline:true, href:".colorSelLightBoxColor", open:true});
34
		$.fn.colorbox({inline:true, href:".colorSelLightBoxColor", open:true, onComplete:function(){
-
 
35
			var posLeft = (document.documentElement.clientWidth / 2) - (parseInt($('#colorbox').css('width')) / 2);
-
 
36
			var posTop = (document.documentElement.clientHeight / 2) - (parseInt($('#colorbox').css('height')) / 2);
-
 
37
 
-
 
38
			$('#colorbox').css('top', posTop);
-
 
39
			$('#colorbox').css('left', posLeft);
-
 
40
		}});
35
		
41
		
36
		/*
42
		/*
37
		var select = $('#colorselector');
43
		var select = $('#colorselector');
38
		var options = select.attr('options');
44
		var options = select.attr('options');
39
		$('option', select).remove();
45
		$('option', select).remove();