Переглянути джерело

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