move_topic: Toggle checkbox by clicking it's label as well.

This commit adds the support to toggle `send_notification`
checkbox by clicking over its corresponding label as well.

It is a similar case as the checkboxes within organization
settings.
This commit is contained in:
aryanshridhar
2021-07-21 19:11:57 +00:00
committed by Tim Abbott
parent 89e60ef938
commit 049ec674df

View File

@@ -26,13 +26,13 @@
<label class="checkbox"> <label class="checkbox">
<input class="send_notification_to_new_thread" name="send_notification_to_new_thread" type="checkbox" {{#if notify_new_thread}}checked="checked"{{/if}} /> <input class="send_notification_to_new_thread" name="send_notification_to_new_thread" type="checkbox" {{#if notify_new_thread}}checked="checked"{{/if}} />
<span></span> <span></span>
{{t "Send notification to new topic" }}
</label> </label>
<label for="send_notification_to_new_thread">{{t "Send notification to new topic" }}</label>
<label class="checkbox"> <label class="checkbox">
<input class="send_notification_to_old_thread" name="send_notification_to_old_thread" type="checkbox" {{#if notify_old_thread}}checked="checked"{{/if}} /> <input class="send_notification_to_old_thread" name="send_notification_to_old_thread" type="checkbox" {{#if notify_old_thread}}checked="checked"{{/if}} />
<span></span> <span></span>
{{t "Send notification to old topic" }}
</label> </label>
<label for="send_notification_to_old_thread">{{t "Send notification to old topic" }}</label>
</div> </div>
</div> </div>
</form> </form>