Fix preview for theme installer. see #8652

git-svn-id: http://svn.automattic.com/wordpress/trunk@10590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2009-02-18 21:55:00 +00:00
parent 062c0c6ac0
commit c6ecb155d6
6 changed files with 28 additions and 23 deletions

View File

@@ -14,7 +14,7 @@ jQuery(document).ready(function($) {
};
return $('a.thickbox').each( function() {
var href = $(this).parents('.available-theme').find('.previewlink').attr('href');
var href = $(this).attr('href');
if ( ! href ) return;
href = href.replace(/&width=[0-9]+/g, '');
href = href.replace(/&height=[0-9]+/g, '');
@@ -26,6 +26,7 @@ jQuery(document).ready(function($) {
.click( function() {
var alink = $(this).parents('.available-theme').find('.activatelink'), url = alink.attr('href'), text = alink.html();
if ( null == text ) text = '';
$('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
$('#TB_closeAjaxWindow').css({'float':'left'});
$('#TB_ajaxWindowTitle').css({'float':'right'})