Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,8 @@

RequestContext requestContext = Request.getCurrent().getContext();
ResourceBundle bundle= requestContext.getApplicationContext().resolveBundle(requestContext.getUserContext().getLocale()) ;
if(users.empty){ %>
<script type="text/javascript">
$(function() {
$("#OnlinePortlet").hide();
});
</script>
%>

<%}else{%>
<script type="text/javascript">
$(function() {
$("#OnlinePortlet").show();
});
</script>
<%}%>
<%users.each { user -> %>

<%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
(function($) {

if($('#onlineList li').length == 0) {
$("#OnlinePortlet").hide();
} else {
$("#OnlinePortlet").show();
}

var showTooltip = function() {
if($('#onlineList li').length == 0) {
$("#OnlinePortlet").hide();
} else {
$("#OnlinePortlet").show();
}
$('#onlineList li').each(function() {
var activity = $(this).find("input[name=activity]").val();
var connect = $(this).find("input[name=connect]").val();
Expand Down