2
0
Эх сурвалжийг харах

Fix selector for cancel button.

JC Brand 8 жил өмнө
parent
commit
cbf9617734

+ 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