Skip to content

Commit

Permalink
hide the full date by default, swap them on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Oct 4, 2012
1 parent b16c2f3 commit 4cf2aff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Core/Assets/webroot/css/admin_nav.css
Expand Up @@ -819,4 +819,8 @@ table tr.no-bottom-border > td {
img.icon-status {
width: 16px;
padding-right: 5px;
}

div.date .full {
display: none;
}
10 changes: 10 additions & 0 deletions Core/Assets/webroot/js/infinitas.js
Expand Up @@ -35,6 +35,7 @@ switch(Infinitas.params.prefix) {
setupAjaxPagination();
setupRowDetails();
setupHrefToggle();
dateToggle();

$(document).bind('keydown', 'ctrl+s', function(event) {
if(event.ctrlKey && event.which == 83) { // ctrl+s
Expand Down Expand Up @@ -97,6 +98,15 @@ switch(Infinitas.params.prefix) {
break;
}

function dateToggle() {
var dateSpan = $('div.date span');
$('div.date').hover(function() {
dateSpan.toggle()
}, function() {
dateSpan.toggle();
});
}

function setupHrefToggle() {
$('a.toggle-target').live('click', function(){
var target = $(this).data('target');
Expand Down

0 comments on commit 4cf2aff

Please sign in to comment.