;
(function(global, factory) {
    if (typeof define === 'function' && define.amd) {
        define(['knockout', 'jquery', 'osfutils'], factory);
    } else {
        global.FolderCreator = factory(ko, jQuery);
    }
}(this, function(ko, $) {
    'use strict';

    function FolderCreatorViewModel(url) {
        var self = this;
        self.url = url;

        self.title = ko.observable('').extend({
            maxLength: 200
        });

        self.formErrorText = ko.observable('');


        self.createFolder = function () {
            $.osf.postJSON(
                self.url,
                self.serialize()
            ).done(
                self.createSuccess
            ).fail(
                self.createFailure
            );
        };

        self.createSuccess = function (data) {
            window.location = data.projectUrl;
        };

        self.createFailure = function (data) {
            bootbox.alert('Could not create a new folder. Please try again. If the problem persists, email <a href="mailto:support@osf.io.">support@osf.io</a>');
        };

        self.serialize = function () {
            return {
                title: self.title()
            };
        };

        self.verifyTitle = function () {
            if (self.title() === ""){
                self.formErrorText('We need a title for your folder.')
            } else {
                self.createFolder();
            }

        }
    }

    function FolderCreator(selector, url) {
        var viewModel = new FolderCreatorViewModel(url);
        // Uncomment for debugging
        // window.viewModel = viewModel;
        $.osf.applyBindings(viewModel, selector);
    }

    return FolderCreator;
}));

@@ -1,10 +1,9 @@
 ;
-%0A
 (functio
@@ -888,36 +888,32 @@
 ure = function (
-data
 ) %7B%0A            
@@ -916,21 +916,20 @@
     
-bootbox.alert
+new GrowlBox
 ('Co
@@ -956,17 +956,20 @@
  folder.
- 
+', '
 Please t
@@ -1277,10 +1277,10 @@
 === 
-%22%22
+''
 )%7B%0A 
@@ -1348,16 +1348,17 @@
 older.')
+;
 %0A       
@@ -1432,16 +1432,17 @@
        %7D
+;
 %0A    %7D%0A%0A

Replace folderCreator's bootbox with GrowlBox.