Sha256: 1d13d304bf291a7adb3fed0a9567466337fc40a3fcebd159d0951224801e2190
Contents?: true
Size: 516 Bytes
Versions: 21
Compression:
Stored size: 516 Bytes
Contents
pageflow.FileMetaDataItemView = Backbone.Marionette.ItemView.extend({ tagName: 'tr', template: 'templates/file_meta_data_item', ui: { label: 'th', value: 'td' }, onRender: function() { this.update(); this.listenTo(this.model, 'change:' + this.options.attribute, this.update); }, update: function() { this.ui.label.text(I18n.t('activerecord.attributes.' + this.model.i18nKey + '.' + this.options.attribute)); this.ui.value.text(this.model.get(this.options.attribute)); } });
Version data entries
21 entries across 21 versions & 1 rubygems