Theme install style tweaks, see #8652

git-svn-id: https://develop.svn.wordpress.org/trunk@10788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-03-15 11:04:34 +00:00
parent 6cbdd69a1e
commit 2327dd41c7
7 changed files with 48 additions and 29 deletions
+7 -7
View File
@@ -24,9 +24,13 @@ jQuery(document).ready(function($) {
thickDims()
.click( function() {
var alink = $(this).parents('.available-theme').find('.activatelink'), url = alink.attr('href'), text = alink.html();
var alink = $(this).parents('.available-theme').find('.activatelink'), url = '', text = '';
if ( null == text ) text = '';
if ( alink.length ) {
url = alink.attr('href') || '';
text = alink.html() || '';
}
$('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
$('#TB_closeAjaxWindow').css({'float':'left'});
$('#TB_ajaxWindowTitle').css({'float':'right'})
@@ -40,11 +44,7 @@ jQuery(document).ready(function($) {
// Theme details disclosure
$('.theme-detail').click(function () {
if ($(this).parents('.available-theme').find('#themedetaildiv').is(":hidden")) {
$(this).parents('.available-theme').find('#themedetaildiv').slideDown("normal");
$(this).hide();
}
$(this).siblings('.themedetaildiv').toggle();
return false;
});
});