$(document).ready(function() {
    var classview = new window.ClassesView();

    var message_class = '#create-class-message';
    var create_class_form = '.create-class-form';
    var create_class_button = '#create-class';

    var error_display = function(model, xhr, options){
        $(create_class_form).removeClass("has-success").addClass("has-error");
        $(message_class).html("This class name has been taken.  Please try another.");
        $(create_class_button).attr('disabled', false);
    };
    var success_display = function(model, response, options){
        $(create_class_form).removeClass("has-error").addClass("has-success");
        $(message_class).html("Class created!  Click on the class name below to get started.  You may need to reload the page to see it.");
        $("#refresh-sidebar").click();
        classview.refresh();
        $(create_class_button).attr('disabled', false);
    };
    $(create_class_button).click( function(event){
        event.preventDefault();
        $(event.target).attr('disabled', true);
        var class_name = $("#inputClass1").val();
        var classgroup = new Class({'name' : class_name});
        classgroup.save(null,{success : success_display, error: error_display, async: false});
        return false;
    });
});
@@ -779,24 +779,83 @@
  see it.%22);%0A
+        window.setTimeout(%0A            function()%7B%0A        
         $(%22#
@@ -877,24 +877,32 @@
 %22).click();%0A
+        
         clas
@@ -914,24 +914,32 @@
 .refresh();%0A
+        
         $(cr
@@ -974,32 +974,75 @@
 abled', false);%0A
+            %7D,%0A            1000%0A        );%0A
     %7D;%0A    $(cre

Add in settimeout for class creation