fix error
This commit is contained in:
parent
162094a798
commit
23785a5e9d
|
@ -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>'))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue