mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00:00
Put that autoclose regexp back. Firefox, take it easy.
This commit is contained in:
parent
09e3767998
commit
a13c7c26f9
@ -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'),
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user