Make make_loading_indicator take its optional text via an options argument

(imported from commit 935f9049c00183f52bad80d54520f81efceb3e49)
This commit is contained in:
Zev Benjamin
2013-07-10 13:33:00 -04:00
parent b372c516cc
commit be0c29252e
3 changed files with 6 additions and 5 deletions

View File

@@ -131,7 +131,7 @@ $(function () {
jQuery.each($('#bot_avatar_file_input')[0].files, function (i, file) {
formData.append('file-'+i, file);
});
util.make_loading_indicator($('#create_bot_spinner'), 'Adding bot');
util.make_loading_indicator($('#create_bot_spinner'), {text: 'Adding bot'});
$('#create_bot_button').hide();
$.ajax({
url: '/json/create_bot',