我在同一地区有两个街区日历drupal。
我尝试使用同月更改导航的下一个和之前的工作
$( "#block-views-calendario-academico-block-1 .date-prev a" ).click(function() {
$( "#block-views-calendario-academico-block-3 .date-prev a" ).trigger( "click");
});
$( "#block-views-calendario-academico-block-1 .date-next a" ).click(function() {
$( "#block-views-calendario-academico-block-3 .date-next a" ).trigger("click");
});
但事件列表对我不起作用
非常感谢你的帮助。
答案 0 :(得分:0)
SoluciónajaxComplete
$( document ).ajaxComplete(function() {
$( "#block-views-calendario-academico-block-1 .date-prev a" ).click(function() {
$( "#block-views-calendario-academico-block-3 .date-prev a" ).trigger( "click" );
});
$( "#block-views-calendario-academico-block-1 .date-next a" ).click(function() {
$( "#block-views-calendario-academico-block-3 .date-next a" ).trigger("click");
});
});