// Initialize everything after DOM is loaded $(function() { var board = RB.Factory.initialize(RB.Taskboard, $('#taskboard')); RB.TaskboardUpdater.start(); // Capture 'click' instead of 'mouseup' so we can preventDefault(); $('#show_charts').bind('click', RB.showCharts); $('#assigned_to_id_options').bind('change', function(){ $(this).parents('.ui-dialog').css('background-color', $(this).children(':selected').attr('color')); }); }); RB.showCharts = function(event){ event.preventDefault(); $('#charts').html("