diff options
Diffstat (limited to 'templates/project/dashboards')
-rw-r--r-- | templates/project/dashboards/layout.erb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/project/dashboards/layout.erb b/templates/project/dashboards/layout.erb index 1d1aeb3..97cb96d 100644 --- a/templates/project/dashboards/layout.erb +++ b/templates/project/dashboards/layout.erb @@ -22,12 +22,13 @@ $('#container ul').masonry({ itemSelector: '.widget-container' }); } - Dashing.on('ready', function() { - setTimeout(relayout, 0); + Dashing.Widget.on('ready', function(){ + setTimeout(function(){ + relayout(); + }, 0); }); $(window).resize(relayout); - </script> </head> <body> |