var init_dashboard = function(id, columns, preferences, url) {
    $('#'+id).dashboard({
        'columns': columns,
        'load_preferences_function': function(options) {
            return preferences;
        },
        'save_preferences_function': function(options, preferences) {
            jQuery.post(url, { data: JSON.stringify(preferences) });
        }
    });
    $(".group-tabs").tabs();
    $(".group-accordion").accordion({header: '.group-accordion-header'});
};

var init_dashboard = function(id, columns, preferences, url) {
    jQuery('#'+id).dashboard({
        'columns': columns,
        'load_preferences_function': function(options) {
            return preferences;
        },
        'save_preferences_function': function(options, preferences) {
            jQuery.post(url, { data: JSON.stringify(preferences) });
        }
    });
    jQuery(".group-tabs").tabs();
    jQuery(".group-accordion").accordion({header: '.group-accordion-header'});
};

Use "jQuery" instead of "$" so JS works even when jQuery.noConflict() has been used.
Use "jQuery" instead of "$" so JS works even when jQuery.noConflict() has been used.
