From 1fc23bd40457a9c76b8a5d11b5f4f24731123c6b Mon Sep 17 00:00:00 2001 From: andrey-canon Date: Tue, 18 Sep 2018 21:15:05 -0500 Subject: [PATCH 1/2] Remove unnecessary ajax request when the xblock is not in the team page --- rocketc/static/js/src/rocketc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocketc/static/js/src/rocketc.js b/rocketc/static/js/src/rocketc.js index 3310aab5..14aec0f7 100644 --- a/rocketc/static/js/src/rocketc.js +++ b/rocketc/static/js/src/rocketc.js @@ -6,6 +6,7 @@ function RocketChatXBlock(runtime, element) { }); var setDefaultChannel = runtime.handlerUrl(element, "set_default_channel"); + var getGroups = runtime.handlerUrl(element, "get_list_of_groups"); if ( $("body").find(".chromeless")[0] && !/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)){ $("body").append($(".vert-mod")); @@ -31,6 +32,7 @@ function RocketChatXBlock(runtime, element) { $(".message").text(""); $(".container-input").hide(); }); + loadGroups(); } $("#button", element).click(function(eventObject) { @@ -131,6 +133,4 @@ function RocketChatXBlock(runtime, element) { }) }; - var getGroups = runtime.handlerUrl(element, "get_list_of_groups"); - loadGroups(); } From e3f48f72b7fbd762ad22968ccaaa59690a1b1fcf Mon Sep 17 00:00:00 2001 From: andrey-canon Date: Wed, 19 Sep 2018 11:26:25 -0500 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=200.2.20=20=E2=86=92=200.2.?= =?UTF-8?q?21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.cfg | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index d4b210a7..87d1d140 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.2.20 +current_version = 0.2.21 commit = True tag = True diff --git a/setup.py b/setup.py index 46ba34ab..3933be81 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup -__version__ = '0.2.20' +__version__ = '0.2.21' def package_data(pkg, roots):