css on 'x' mouse over

This commit is contained in:
Ezequiel Bergamaschi 2014-02-02 03:02:01 -03:00 committed by Ezequiel Bergamaschi
parent fdf041e8b1
commit 734463d233
2 changed files with 11 additions and 5 deletions

View File

@ -155,6 +155,10 @@ input#selectAll {
background-color: #d5d3d4;
}
.closeTag {
cursor: pointer;
}
.tableTag {
padding:0px;
margin-bottom: 0px;
@ -172,8 +176,9 @@ table.tableTag td {
line-height: 15px;
}
table.tableTag td:hover {
background-color: #ffffff;
.closeTag:hover {
background-color: #ffffff !important;
color: #000000;
}
/* ---------------------------- Scrollbar for list filter --------------------------------- */

View File

@ -24,8 +24,9 @@ function labelTagsAsHtml(labels) {
label.title +
'</div>' +
"</td>" +
"<td style='cursor: pointer;background-color:"+ label.color +"'>" +
"<span style='left: -2px;top: -1px;position: relative;font-size: 11px' title='remove'>x</span>"+
//"<td style='padding: 0; background-color: #d8d4d4'></td>" +
"<td class='closeTag' style='background-color:"+ label.color +"'>" +
"<span style='top: -1px;position: relative;font-size: 11px' title='remove'>x</span>"+
"</td>" +
"</tr></tbody>" +
"</table>"
@ -54,7 +55,7 @@ function tagMindmaps(labelName, labelColor) {
var rows = $('#mindmapListTable').dataTableExt.getSelectedRows();
for (var i = 0; i < rows.length; i++) {
if ($(rows[i]).find(".labelTag:contains('" + labelName + "')").length == 0) {
$(rows[i]).find('.mindmapName').append(
$(rows[i]).find('.mindmapName').parent().append(
labelTagsAsHtml([{
title: labelName,
color: labelColor