Issue 30 - Refactor date selector navigation to be non-js friendly

This commit is contained in:
perryharlock
2013-09-24 11:04:34 +01:00
parent e9ce4bf9ad
commit c6c6466d31
5 changed files with 36 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -54,11 +54,13 @@ $(document).ready(function(){
// Back to top links
toTopLinks.click( function(e){
e.preventDefault();
$(animateSection($('#top'), -75));
$(animateSection($('#top'), -55));
});
switchStandardsList(standardSelect);
$('.rules-list-title').addClass('hidden');
$('.date-links').removeClass('date-links list-group').addClass('dropdown-menu');
$('.dropdown-menu a').removeClass('list-group-item active');
standardSelect.change( function(){
switchStandardsList($(this));

View File

@@ -17,4 +17,10 @@
margin-top:0;
border-radius: 3px 3px 0 0;
}
.dropdown-toggle {
display:none;
}
.show-class {
display:block;
}
}

View File

@@ -48,6 +48,26 @@
margin-top:0;
margin-bottom:10px;
}
.date-links {
.list-unstyled();
max-height:190px;
overflow-y: auto;
}
.list-group {
li .list-group-item {
border-radius:0;
margin-bottom:-1px;
}
li:first-child .list-group-item {
border-top-left-radius:3px;
border-top-right-radius:3px;
}
li:last-child .list-group-item {
border-bottom-left-radius:3px;
border-bottom-right-radius:3px;
margin-bottom:0;
}
}
.delete-button {
position:absolute;
top:5px;