Skip to content
Snippets Groups Projects
Commit f98a9a69 authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3050329 by Xiaohua Guan, yas: Ec2 view list wasn't updated on Bartik theme

parent 6ab7bc05
No related branches found
No related tags found
No related merge requests found
...@@ -14,13 +14,17 @@ ...@@ -14,13 +14,17 @@
// same sorting and paging as the initial view's content. // same sorting and paging as the initial view's content.
var query_str = window.location.search; var query_str = window.location.search;
// The table selector. // Update .view-content element, which is the content of view, excluding
// It's necessary because only the content of a view's table will be updated, // exposed filter and pager.
// and the content of a view's exposed filter will be unchanged. $.get(url + query_str, function(data) {
var view_table_selector = ".table-responsive"; $(".views-element-container .view-content")
$(".views-element-container .view-content").load( .replaceWith($(data).find(".view-content"));
url + query_str + " " + view_table_selector
); // Fix for the theme Bartik, which need to initialize drop buttons.
if (Drupal.behaviors.dropButton) {
Drupal.behaviors.dropButton.attach(document, drupalSettings);
}
});
} }
// Update a view's content every "refresh_in_sec" seconds. // Update a view's content every "refresh_in_sec" seconds.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment