summaryrefslogtreecommitdiff
path: root/templates/project/dashboards/layout.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/project/dashboards/layout.erb')
-rw-r--r--templates/project/dashboards/layout.erb7
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>