diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2017-01-21 02:02:45 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-01-21 02:02:45 +0000 |
commit | 71de0efb40b5840ac2d841726d448d40a023b26f (patch) | |
tree | c3aca86db6b66ac7ceedd08548f9db57623597e6 | |
parent | e0d248f95ff17a185aed830837ecd66c9923756f (diff) | |
parent | a20fbcaacd05cca768634d4f42d3d68042ec0530 (diff) | |
download | gitlab-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.haml | 10 |
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_', + }); + }); |