Added 'submitting...' text to the i18n translation form button to show when a submission is successful.

This commit is contained in:
Scott Erickson 2015-01-07 16:15:26 -08:00
parent c235b1cc15
commit aeebee891e

View file

@ -162,5 +162,6 @@ module.exports = class I18NEditModelView extends RootView
return button.text('Failed to Submit Changes') if errors
res = modelToSave.save(null, {type: 'POST'}) # Override PUT so we can trigger postNewVersion logic
return button.text('Failed to Submit Changes') unless res
button.text('Submitting...')
res.error => button.text('Error Submitting Changes')
res.success => button.text('Submit Changes')