You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2018/07/26 06:17:38 UTC
[openmeetings] branch 4.0.x updated: [OPENMEETINGS-1908] only send
event if activation was initiated by user
This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/4.0.x by this push:
new 209e498 [OPENMEETINGS-1908] only send event if activation was initiated by user
209e498 is described below
commit 209e498341599cec855d66cb9718895b371472ad
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Thu Jul 26 13:17:29 2018 +0700
[OPENMEETINGS-1908] only send event if activation was initiated by user
---
.../src/main/java/org/apache/openmeetings/web/room/wb/wb-area.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/wb-area.js b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/wb-area.js
index 88f97cf..47b59ba 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/wb-area.js
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/wb-area.js
@@ -165,7 +165,10 @@ var DrawWbArea = function() {
return res;
}
, activate: function(e, ui) {
- wbAction('activateWb', JSON.stringify({wbId: ui.newTab.data('wb-id')}));
+ //only send `activateWb` event if activation was initiated by user
+ if (e.originalEvent && e.originalEvent.type === 'click') {
+ wbAction('activateWb', JSON.stringify({wbId: ui.newTab.data('wb-id')}));
+ }
}
});
scroll = tabs.find('.scroll-container');