fix error

This commit is contained in:
chiu 2020-08-16 14:51:41 +08:00
parent 162094a798
commit 23785a5e9d
1 changed files with 3 additions and 2 deletions

View File

@ -520,8 +520,9 @@
})
var clicked_color = dom.find('.w-calendar-event').css('background-color')
if (clicked_color){
clicked_color = lighten_color(rgb2hex(clicked_color),-45)
if (clicked_color!='#000000'){
var hex_color = rgb2hex(clicked_color)
if (hex_color != '#000000'){
clicked_color = lighten_color(hex_color,-45)
dom.find('table').append($('<style>.widget-calendar-2 table.w-calendar-table .w-calendar-toggle{ background-color:'+clicked_color+';color: white;}</style>'))
}
}