diff options
Diffstat (limited to 'app/views/common')
-rw-r--r-- | app/views/common/_tabs.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/common/_tabs.html.erb b/app/views/common/_tabs.html.erb index 4e5d23302..2cf90135f 100644 --- a/app/views/common/_tabs.html.erb +++ b/app/views/common/_tabs.html.erb @@ -16,8 +16,8 @@ </div> <script> - Event.observe(window, 'load', function() { displayTabsButtons(); }); - Event.observe(window, 'resize', function() { displayTabsButtons(); }); + $(document).ready(displayTabsButtons); + $(window).resize(displayTabsButtons); </script> <% tabs.each do |tab| -%> |