Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Include nav element for page update when loading partial page content through fetch

givanz184ca3976f3b
diff --git a/public/js/app.js b/public/js/app.js
index 321450b..a121679 100755
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -829,7 +829,7 @@ function loadAjax(url, selector, callback = null, params = {}, method = "get") {
VvvebTheme.ajax.selector = VvvebTheme.ajax.selector || "a[data-url], a[data-page-url], a[data-v-url], a[data-v-menu-item-url], a[data-v-post-url], a[data-v-product-url], a[data-v-cat-url], a[data-v-archive-url], a[data-v-admin-url], a[data-v-post-author-url], a[data-v-breadcrumb-item-url], a[data-v-categories-cat-url], a[data-v-cart-product-url]";
-VvvebTheme.ajax.siteContainer = VvvebTheme.ajax.siteContainer || ["#site-content", "body > section"];
+VvvebTheme.ajax.siteContainer = VvvebTheme.ajax.siteContainer || ["#site-content", ".inner-page-hero", "body > section", "body > nav"];
VvvebTheme.ajax.scrollContainer = VvvebTheme.ajax.scrollContainer || "body";
VvvebTheme.ajax.skipUrl = VvvebTheme.ajax.skipUrl || [];