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 @@
// same sorting and paging as the initial view's content.
var query_str = window.location.search;
// The table selector.
// It's necessary because only the content of a view's table will be updated,
// and the content of a view's exposed filter will be unchanged.
var view_table_selector = ".table-responsive";
$(".views-element-container .view-content").load(
url + query_str + " " + view_table_selector
);
// Update .view-content element, which is the content of view, excluding
// exposed filter and pager.
$.get(url + query_str, function(data) {
$(".views-element-container .view-content")
.replaceWith($(data).find(".view-content"));
// 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.
......
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