app/assets/javascripts/lato_view/application.js in lato_view-1.1.4 vs app/assets/javascripts/lato_view/application.js in lato_view-1.1.5

- old
+ new

@@ -27,18 +27,18 @@ //= require lato_view/build/FormManager //= require lato_view/build/Dropdown //= require lato_view/build/Navigation //= require lato_view/build/ActionBar //= require lato_view/build/Flash +//= require lato_view/build/ConfirmationPopup +//= require lato_view/build/Step var Application = (function($) { - var onResize = function() { - $(window).on('resize', function() { - Navigation.manageSidebarDropdown(); - }); - }; + var onResize = Util.debounce(function() { + Navigation.manageSidebarDropdown(); + }, 250); var init = function() { $(document).on('ready', function() { // Active js functionalities @@ -47,16 +47,18 @@ // Init our modules Dropdown.init(); Navigation.init(); //ActionBar.init(); Flash.init(); + Step.init(); FormManager.init(); + ConfirmationPopup.init(); $('.editor').trumbowyg({ svgPath: '/ui/icons.svg' }); // Functions executed on resize - onResize(); + $(window).on('resize', onResize()); }); }; return { init: init,