19 lines
385 B
JavaScript
19 lines
385 B
JavaScript
/**
|
|
This is a custom text field that allows i18n placeholders
|
|
|
|
@class TextField
|
|
@extends Ember.TextField
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.TextField = Ember.TextField.extend({
|
|
attributeBindings: ['autocorrect', 'autocapitalize'],
|
|
|
|
placeholder: (function() {
|
|
return Em.String.i18n(this.get('placeholderKey'));
|
|
}).property('placeholderKey')
|
|
|
|
});
|
|
|
|
|