This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 20cffa9  [OPENMEETINGS-2613] JS error is fixed
20cffa9 is described below

commit 20cffa9020c8f8de3ec0906612116f26d0802d0d
Author: Maxim Solodovnik <solomax...@gmail.com>
AuthorDate: Thu Apr 15 19:13:04 2021 +0700

    [OPENMEETINGS-2613] JS error is fixed
---
 openmeetings-web/src/main/front/wb/src/wb-tools.js | 7 +++++++
 openmeetings-web/src/main/front/wb/src/wb.js       | 6 +-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/openmeetings-web/src/main/front/wb/src/wb-tools.js 
b/openmeetings-web/src/main/front/wb/src/wb-tools.js
index 2f9e304..6065b33 100644
--- a/openmeetings-web/src/main/front/wb/src/wb-tools.js
+++ b/openmeetings-web/src/main/front/wb/src/wb-tools.js
@@ -363,6 +363,13 @@ module.exports = class WbTools {
                                        //no-op
                        }
                };
+               this.reactivateBtn() = () => {
+                       const b = _getBtn();
+                       if (__validBtn(b)) {
+                               b.data().deactivate();
+                               b.data().activate();
+                       }
+               };
                this.updateCoordinates = (o) => {
                        settings.find('.wb-dim-x').val(o.left);
                        settings.find('.wb-dim-y').val(o.top);
diff --git a/openmeetings-web/src/main/front/wb/src/wb.js 
b/openmeetings-web/src/main/front/wb/src/wb.js
index 02cb224..4d89e78 100644
--- a/openmeetings-web/src/main/front/wb/src/wb.js
+++ b/openmeetings-web/src/main/front/wb/src/wb.js
@@ -65,11 +65,7 @@ module.exports = class Wb {
                                        }
                                        zoomBar.update(role, canvases.length);
                                        if (ccount !== canvases.length) {
-                                               const b = _getBtn();
-                                               if (__validBtn(b)) {
-                                                       b.data().deactivate();
-                                                       b.data().activate();
-                                               }
+                                               WbTools.reactivateBtn();
                                                self._showCurrentSlide();
                                        }
                                }

Reply via email to