浏览代码

Fix selector for cancel button.

JC Brand 8 年之前
父节点
当前提交
cbf9617734
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      docs/CHANGES.md
  2. 1 1
      src/converse-register.js

+ 2 - 0
docs/CHANGES.md

@@ -2,6 +2,8 @@
 
 ## 2.0.5
 - #755: create composer.json to add this project in packagist.org [fabiomontefuscolo]
+- Bugfix. Cancel button shown while registration form is being fetched wasn't working
+  properly. [jcbrand]
 
 ## 2.0.4 (2016-12-13)
 - #737: Bugfix. Translations weren't being applied. [jcbrand]

+ 1 - 1
src/converse-register.js

@@ -235,7 +235,7 @@
                             cancel: __('Cancel'),
                             info_message: __('Requesting a registration form from the XMPP server')
                         }));
-                    $form.find('button.cancel').on('click', this.cancelRegistration.bind(this));
+                    $form.find('button.button-cancel').on('click', this.cancelRegistration.bind(this));
                     this.reset({
                         domain: Strophe.getDomainFromJid(domain),
                         _registering: true