From 72f245429043f14d3051345c455bdee70462a799 Mon Sep 17 00:00:00 2001 From: Robin Ward <robin.ward@gmail.com> Date: Tue, 15 Sep 2015 11:09:09 -0400 Subject: [PATCH] FIX: Auto close was broken --- .../discourse/templates/modal/edit-topic-auto-close.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/modal/edit-topic-auto-close.hbs b/app/assets/javascripts/discourse/templates/modal/edit-topic-auto-close.hbs index 94ce2fd0ad6..fcf524920c1 100644 --- a/app/assets/javascripts/discourse/templates/modal/edit-topic-auto-close.hbs +++ b/app/assets/javascripts/discourse/templates/modal/edit-topic-auto-close.hbs @@ -1,4 +1,4 @@ -<form {{action "saveAutoClose" on="submit"}}> +<form> <div class="modal-body"> {{auto-close-form autoCloseTime=model.auto_close_time autoCloseValid=auto_close_valid @@ -6,7 +6,7 @@ limited=model.details.auto_close_based_on_last_post }} </div> <div class="modal-footer"> - {{d-button class="btn-primary" disabled=auto_close_invalid label="topic.auto_close_save"}} + {{d-button class="btn-primary" disabled=auto_close_invalid label="topic.auto_close_save" action="saveAutoClose"}} <a {{action "closeModal"}}>{{i18n 'cancel'}}</a> {{d-button class="pull-right" action="removeAutoClose" label="topic.auto_close_remove"}} </div>