Skip to content

Commit

Permalink
Merge pull request #52 from eduNEXT/and/remove_ajax_request
Browse files Browse the repository at this point in the history
Remove unnecessary ajax request when the xblock is not in the team page
  • Loading branch information
ericfab179 committed Sep 19, 2018
2 parents e977859 + e3f48f7 commit eae1bc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rocketc/static/js/src/rocketc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand All @@ -31,6 +32,7 @@ function RocketChatXBlock(runtime, element) {
$(".message").text("");
$(".container-input").hide();
});
loadGroups();
}

$("#button", element).click(function(eventObject) {
Expand Down Expand Up @@ -131,6 +133,4 @@ function RocketChatXBlock(runtime, element) {
})
};

var getGroups = runtime.handlerUrl(element, "get_list_of_groups");
loadGroups();
}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.20
current_version = 0.2.21
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from setuptools import setup

__version__ = '0.2.20'
__version__ = '0.2.21'


def package_data(pkg, roots):
Expand Down

0 comments on commit eae1bc1

Please sign in to comment.