Add nextmatch-cat-header in order to add category color into nm rows

This commit is contained in:
Hadi Nategh 2016-02-09 17:11:44 +00:00
parent f89d886cef
commit 710e8a7847
2 changed files with 34 additions and 0 deletions

View File

@ -3458,3 +3458,22 @@ var et2_nextmatch_customfilter = et2_nextmatch_filterheader.extend(
}
});
et2_register_widget(et2_nextmatch_customfilter, ['nextmatch-customfilter']);
/**
* Define a nextmatch header for category colors
* @type type
*/
var et2_nextmatch_cat_header = et2_baseWidget.extend(et2_INextmatchHeader,
{
/**
* Unbind resize handler for category color header
* add class to th
*/
setNextmatch: function() {
jQuery(this.parentNode.parentNode)
.addClass('cat-header')
.unbind('.resize');
}
});
et2_register_widget(et2_nextmatch_cat_header, ['nextmatch-cat-header']);

View File

@ -506,6 +506,21 @@ which caused click on free space infront of a tag stops nm row selection*/
.et2_nextmatch .egwGridView_grid tr td div.et2_vbox a {
display: table-row;
}
.et2_nextmatch .egwGridView_grid tr td {
position: relative;
}
.et2_nextmatch .egwGridView_grid tr td .nm_cat_col {
position: absolute;
min-height: 100%;
bottom:0;
top:0;
width:10px;
display: block;
}
span.cat_.nm_cat_col {
background: #F5F5F5;
}
/*
These are set via javascript before printing to help tame nextmatch's layout
for printing