* Api - Fix row category colors go missing after a change

- Row color css was not specific enough to override the default, and only worked because of load order
- Remove uneeded category CSS requests from calendar
This commit is contained in:
nathangray 2018-07-24 12:57:17 -06:00
parent 7805844b7c
commit e8127f7da7
3 changed files with 1 additions and 7 deletions

View File

@ -41,7 +41,7 @@ foreach($categories as $cat)
{
// Use slightly more specific selector that just class, to allow defaults
// if the category has no color
$content .= ".egwGridView_scrollarea tr.cat_{$cat['id']} > td:first-child, .select-cat li.cat_{$cat['id']}, .nextmatch_header_row .et2_selectbox.select-cat.cat_{$cat['id']} a.chzn-single {border-left-color: {$cat['data']['color']};} .cat_{$cat['id']}.fullline_cat_bg, div.cat_{$cat['id']}, span.cat_{$cat['id']} { background-color: {$cat['data']['color']};} /*{$cat['name']}*/\n";
$content .= ".egwGridView_scrollarea tr.row_category.cat_{$cat['id']} > td:first-child, .select-cat li.cat_{$cat['id']}, .nextmatch_header_row .et2_selectbox.select-cat.cat_{$cat['id']} a.chzn-single {border-left-color: {$cat['data']['color']};} .cat_{$cat['id']}.fullline_cat_bg, div.cat_{$cat['id']}, span.cat_{$cat['id']} { background-color: {$cat['data']['color']};} /*{$cat['name']}*/\n";
}
if (!empty($cat['data']['icon']))
{

View File

@ -262,9 +262,6 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten
getInstanceManager: function() {return im}
}, {application:event.app||'calendar'});
// Get CSS too
egw.includeCSS('/api/categories.php?app='+event.app);
// Need cleaning? (DnD helper removes content)
if(!this.div.has(this.title).length)
{

View File

@ -1877,9 +1877,6 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e
_type:'select-cat',
getInstanceManager: function() {return im;}
}, {application:event.data.app||'calendar'});
// Get CSS too
egw.includeCSS('/api/categories.php?app='+event.data.app);
}
}