Explorar o código

Fix selector for cancel button.

JC Brand %!s(int64=8) %!d(string=hai) anos
pai
achega
cbf9617734
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  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