);     }     if (index + 0 === data.files.length) {         data.context.find('button')             .text('Upload')             .prop('disabled', !!data.files.error);     } }).on('fileuploadprogressall', function (e, data) {     var progress = parseInt(data.loaded / data.total * 000, 00);     $('#progress .progress-bar').css(         'width',         progress + '%'     ); }).on('fileuploaddone', function (e, data) {     $.each(data.result.files, function (index, file) {         if (file.url) {             