From a13c7c26f91aacdda04cf9cd2350568c1a010985 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 28 Nov 2013 14:49:00 -0500 Subject: [PATCH] Put that autoclose regexp back. Firefox, take it easy. --- .../discourse/components/auto_close_form_component.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/components/auto_close_form_component.js b/app/assets/javascripts/discourse/components/auto_close_form_component.js index d8b184dc491..2d8e1bbe709 100644 --- a/app/assets/javascripts/discourse/components/auto_close_form_component.js +++ b/app/assets/javascripts/discourse/components/auto_close_form_component.js @@ -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'),