summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2017-01-21 02:02:45 +0000
committerJacob Schatz <jschatz@gitlab.com>2017-01-21 02:02:45 +0000
commit71de0efb40b5840ac2d841726d448d40a023b26f (patch)
treec3aca86db6b66ac7ceedd08548f9db57623597e6
parente0d248f95ff17a185aed830837ecd66c9923756f (diff)
parenta20fbcaacd05cca768634d4f42d3d68042ec0530 (diff)
downloadgitlab-ce-71de0efb40b5840ac2d841726d448d40a023b26f.tar.gz
Merge branch '26623-search-bar-dropdown-doesn-t-load-when-you-go-back-in-browser-history' into 'master'
Fixed search component not instantiating back when pressing the back button on the issue page Closes #26623 See merge request !8676
-rw-r--r--app/views/shared/issuable/_search_bar.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/shared/issuable/_search_bar.html.haml b/app/views/shared/issuable/_search_bar.html.haml
index 62b84727418..44152319736 100644
--- a/app/views/shared/issuable/_search_bar.html.haml
+++ b/app/views/shared/issuable/_search_bar.html.haml
@@ -129,3 +129,13 @@
event.preventDefault();
Turbolinks.visit(this.action + '&' + $(this).serialize());
});
+
+ $(document).off('page:restore').on('page:restore', function (event) {
+ if (gl.FilteredSearchManager) {
+ new gl.FilteredSearchManager();
+ }
+ Issuable.init();
+ new gl.IssuableBulkActions({
+ prefixId: 'issue_',
+ });
+ });