Fix preview for theme installer. see #8652

git-svn-id: https://develop.svn.wordpress.org/trunk@10590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-02-18 21:55:00 +00:00
parent 5e078f8814
commit dfc5340e6a
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'})