Panowie mam kod:
function load_calendar(el,month,year){
var req = new Request({
async:false,
method: 'get',
url: url_ajax_cal,
data: {
'id_item':id_item,
'month':month,
'year':year,
'lang':lang
},
evalScripts:true,
onRequest: function() {
el.set('html','
<img class="img_loading_month" src="'+img_loading_month+'">');
},
onSuccess: function(response) {
el.set('html',response);
$('the_months').getElementsByClassName('.weekend').each(function(el) {
});
if(clickable_past=="off"){
$('the_months').getElementsByClassName('.past').each(function(el) {
el.set('opacity','0.6');
});
}
}
}).send();
}
konsola krzyczy do tego:
$('the_months').getElementsByClassName('.weekend').each(function(el) {
html:
<li class=" clickable weekend " id="date_2017-07-01" title="1/07/2017 - Wolne" data-date="1/07/2017" style="cursor: pointer; visibility: visible; zoom: 1; opacity: 1;">1
</li>