web/wp-admin/js/theme-preview.dev.js
changeset 194 32102edaa81b
parent 136 bde1974c263b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
    19 
    19 
    20 	thickDims();
    20 	thickDims();
    21 	$(window).resize( function() { thickDims() } );
    21 	$(window).resize( function() { thickDims() } );
    22 
    22 
    23 	$('a.thickbox-preview').click( function() {
    23 	$('a.thickbox-preview').click( function() {
       
    24 		tb_click.call(this);
       
    25 
    24 		var alink = $(this).parents('.available-theme').find('.activatelink'), link = '', href = $(this).attr('href'), url, text;
    26 		var alink = $(this).parents('.available-theme').find('.activatelink'), link = '', href = $(this).attr('href'), url, text;
    25 
    27 
    26 		if ( tbWidth = href.match(/&tbWidth=[0-9]+/) )
    28 		if ( tbWidth = href.match(/&tbWidth=[0-9]+/) )
    27 			tbWidth = parseInt(tbWidth[0].replace(/[^0-9]+/g, ''), 10);
    29 			tbWidth = parseInt(tbWidth[0].replace(/[^0-9]+/g, ''), 10);
    28 		else
    30 		else
    46 		$('#TB_closeAjaxWindow').css({'float':'left'});
    48 		$('#TB_closeAjaxWindow').css({'float':'left'});
    47 		$('#TB_ajaxWindowTitle').css({'float':'right'}).html(link);
    49 		$('#TB_ajaxWindowTitle').css({'float':'right'}).html(link);
    48 
    50 
    49 		$('#TB_iframeContent').width('100%');
    51 		$('#TB_iframeContent').width('100%');
    50 		thickDims();
    52 		thickDims();
       
    53 
    51 		return false;
    54 		return false;
    52 	} );
    55 	} );
    53 
       
    54 	// Theme details
       
    55 	$('.theme-detail').click(function () {
       
    56 		$(this).siblings('.themedetaildiv').toggle();
       
    57 		return false;
       
    58 	});
       
    59 
       
    60 });
    56 });
    61