FIX: broke all the things on Firefox

This commit is contained in:
Neil Lalonde 2013-11-27 14:52:29 -05:00
parent c91d1624cf
commit 13b31e9833
1 changed files with 3 additions and 3 deletions

View File

@ -7,9 +7,9 @@ Discourse.AutoCloseFormComponent = Ember.Component.extend({
}.property('labelKey'),
autoCloseChanged: function() {
if( this.get('autoCloseTime') && this.get('autoCloseTime').length > 0 ) {
this.set('autoCloseTime', this.get('autoCloseTime').replace(/[^\d:-\s]/g, '') );
}
// if( this.get('autoCloseTime') && this.get('autoCloseTime').length > 0 ) {
// this.set('autoCloseTime', this.get('autoCloseTime').replace(/[^\d-\s\:]/g, '') );
// }
this.set('autoCloseValid', this.isAutoCloseValid());
}.observes('autoCloseTime'),