Skip to content

Commit 3d4b8a6

Browse files
committed
fix chosen with turbolinks
1 parent f3d96e3 commit 3d4b8a6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
- Added threadsafety as tech preview, enabled with ActiveScaffold.threadsafe! in initializer.
22

3+
= 3.5.x
4+
- Load chosen on turbolinks:load event
5+
36
= 3.5.1
47
- Fix set false options for date picker
58
- Fix :hidden form_ui for singular associations

app/assets/javascripts/jquery/active_scaffold_chosen.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ jQuery(document).ready(function() {
88
}
99
});
1010
jQuery('select.chosen').chosen();
11+
jQuery(document).on('turbolinks:load', function($) {
12+
jQuery('select.chosen').chosen();
13+
});
1114
});

0 commit comments

Comments
 (0)