We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 907ac7c commit 859ca87Copy full SHA for 859ca87
assets/js/live_preview.js
@@ -748,11 +748,13 @@
748
}
749
750
// Präferenz speichern
751
- // Beim Einschalten: reload, damit PHP den iframe frisch rendert
752
- // Beim Ausschalten: kein reload nötig (iframe ist bereits entladen)
+ // Beim Einschalten: PJAX-Reload des Seitencontainers, damit PHP den iframe frisch rendert
+ // Beim Ausschalten: kein Reload nötig (iframe ist bereits entladen)
753
fetch(toggle.dataset.url + '&enabled=' + (enabled ? 1 : 0))
754
.then(function () {
755
- if (enabled) { window.location.reload(); }
+ if (enabled) {
756
+ $.pjax.reload({ container: '#rex-js-pjax-container', timeout: 5000 });
757
+ }
758
});
759
760
0 commit comments