Skip to content

Commit 6f83250

Browse files
authored
Update README.md
1 parent ee746d6 commit 6f83250

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)