File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ This code snippet will replace the HTML node `.mod_my_module` when clicking on `
5555 </script >
5656```
5757### Ajax Calendar
58- Add this to the ` cal_default.html5 ` template and add the CSS classes ` .calendar__next ` and ` .calendar__prev ` to the next and previous month links.
58+ Add this to the ` cal_default.html5 ` template and add the CSS classes ` .calendar__next ` and ` .calendar__prev ` to the next and previous month links.
59+ Don't forget to activate ajax reload on the content element or module.
5960
6061``` html
6162<script >
@@ -66,7 +67,7 @@ Add this to the `cal_default.html5` template and add the CSS classes `.calendar_
6667 // Don't follow the link
6768 event .preventDefault ();
6869 // This is the elements div container like ".mod_my_module". "Allow ajax reload" has to be ticket for this element in the backend
69- element = $ (this ).closest (' .mod_article ' );
70+ element = $ (this ).closest (' [class^="ce_"],[class^="mod_"] ' );
7071 // Add a css class to this element. An overlay and spinning icon can be set via css
7172 element .addClass (' ajax-reload-element-overlay' );
7273
You can’t perform that action at this time.
0 commit comments