Fix broken JS selector for category selector popup.

Also style category legend differently in no popups fallback.

References #77
This commit is contained in:
Matthias Mees 2014-03-05 19:01:34 +01:00
parent c3b4fe53e9
commit 1ca8c8fdf5
2 changed files with 5 additions and 5 deletions

View File

@ -840,8 +840,8 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
{if $use_popups}
if($('body').has('#serendipityEntry').size() > 0) {
$('#select_category').click(function(e) {
$('#edit_entry_metadata legend > button').click();
$('#edit_entry_category').toggleClass('mfp-hide');
$('#toggle_metadata').click();
});
}
{else}

View File

@ -977,8 +977,8 @@ h2 {
margin: 1.05em 0;
}
h3,
.js #edit_entry_category .wrap_legend {
.js .mfp-wrap #edit_entry_category .wrap_legend,
h3 {
font-size: 1.28571em;
line-height: 1.16667em;
margin: 1.16667em 0;
@ -1541,8 +1541,8 @@ form > .button_link:first-of-type,
width: auto;
}
.mfp-content #s9y_links h3,
.js #edit_entry_category .wrap_legend {
.js .mfp-wrap #edit_entry_category .wrap_legend,
.mfp-content #s9y_links h3 {
border-bottom: 1px solid #aaa;
display: block;
margin-bottom: .583335em;