Skip to content

Commit

Permalink
Added tooltip over user image.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlabusch committed Nov 21, 2013
1 parent d23adb3 commit 88e019d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "wrms-kanban",
"version": "0.6.8",
"version": "0.6.9",
"update_url": "http://foo.wgtn.cat-it.co.nz/wrms-kanban.xml",
"description": "Generates simple Kanban boards for WRMS ticket groups",
"icons": {
Expand Down
12 changes: 11 additions & 1 deletion wrms-kanban.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
}
}

.alloc_tooltip {
z-index: 2500;
padding: 5px;
background-color: #333;
opacity: 0.8;
color: #fff;
position: absolute;
height: 1em;
}

#kanban-overlay {
z-index: 1500;
Expand Down Expand Up @@ -98,7 +107,8 @@
#kanban-overlay h1 {
text-align: center;
font-size: 2em;
color: #000;
color: #fff;
text-shadow: 1px 1px 5px #000;
}

#kanban-overlay > div.section > div {
Expand Down
11 changes: 10 additions & 1 deletion wrms-kanban.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@
}));
});
}));
$(overlay).append(mk('div', ['alloc_tooltip'], function(tip){
$(tip).hide();
}));
$(overlay).hide();
}));
$('#kanban-overlay ul').sortable({
Expand Down Expand Up @@ -369,7 +372,12 @@
.css('background-repeat', 'no-repeat')
.css('background-size', 'contain');
$(s).hover(
function(){
function(ev){
$('div.alloc_tooltip')
.text(u)
.css('top', ev.pageY - 30)
.css('left', ev.pageX + 10)
.show();
$('span.alloc.bright').removeClass('bright');
$('li.dimmed').removeClass('dimmed');
$('#kanban-overlay li').each(function(){
Expand All @@ -384,6 +392,7 @@
});
},
function(){
$('.alloc_tooltip').hide();
$('span.alloc.bright').removeClass('bright');
$('li.dimmed').removeClass('dimmed');
}
Expand Down

0 comments on commit 88e019d

Please sign in to comment.