summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2017-01-21 02:02:45 +0000
committerStan Hu <stanhu@gmail.com>2017-01-21 22:11:36 -0800
commit28353e6f4c9ea26e3b0feb00fe0c56f3597aefd4 (patch)
tree5f9370b46af73275f73b087d3bc8287b69683fca
parentf8747323256f813813cd6f83014efd309bcd3e05 (diff)
downloadgitlab-ce-28353e6f4c9ea26e3b0feb00fe0c56f3597aefd4.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 8b9f43e7041..caf5754972f 100644
--- a/app/views/shared/issuable/_search_bar.html.haml
+++ b/app/views/shared/issuable/_search_bar.html.haml
@@ -125,3 +125,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_',
+ });
+ });