Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud-3236437
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
cloud-3236437
Commits
f98a9a69
Commit
f98a9a69
authored
5 years ago
by
xiaohua guan
Committed by
Yas Naoi
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/cloud_service_providers/aws_cloud/js/aws_cloud_auto_refresh.js
+11
-7
11 additions, 7 deletions
..._service_providers/aws_cloud/js/aws_cloud_auto_refresh.js
with
11 additions
and
7 deletions
modules/cloud_service_providers/aws_cloud/js/aws_cloud_auto_refresh.js
+
11
−
7
View file @
f98a9a69
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment