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: