portal.highlightWidget(<%= params[:highlight] -%>);
<% end %>
}
- Event.observe(window, 'load', init_dashboard, false);
+ $j(document).ready(function(){init_dashboard();});
function filterWidgetsByCategory(category) {
$j('#filter-widgets-loading').show();
$j.ajax ({ url: '<%= add_category_to_url(url_for dashboard_action(:widget_definitions)) -%>' + encodeURIComponent(category),
success: function(responseHTML){$j('#widget_defs').html(responseHTML);},
- error:function(error){alert('error');},
+ error:function(error){alert('error');}
});
return false;
}