app/views/staff/grids/bulk_time_slots/edit.js.erb
(function($) {
var grid = window.Schedule.Grid;
var $dialog = $('#bulk-time-slot-create-dialog');
$dialog.html('<%=j render partial: 'create_dialog', locals: { bulk: @bulk} %>');
grid.initBulkDialog($dialog);
$dialog.modal('show');
})(jQuery);