Sha256: 0a6a7ef084c9635dba2394bc7761faaa1d56e1b86f94124e0fb85d7f5accce98
Contents?: true
Size: 472 Bytes
Versions: 24
Compression:
Stored size: 472 Bytes
Contents
class Apiv1.AdminTranslationFormController extends Ember.ObjectController successSave: (translation) -> lng = translation.get "language" Apiv1.Flash.register "success", "#{lng} key updated", 3000 failureSave: (reason) -> Apiv1.Flash.register "warning", "failed", 2000 @failureReason = reason.responseJSON if reason? and reason.responseJSON? actions: formSubmitted: -> @model.save().then(_.bind @successSave, @).catch(_.bind @failureSave, @)
Version data entries
24 entries across 24 versions & 1 rubygems