Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Commits
f8f9a7ff
Commit
f8f9a7ff
authored
May 11, 2018
by
Gradl, Tobias
Browse files
1005: Visualize coherence within individual group
Task-Url:
https://pm.winseda.de/issues/1005
parent
14f77f0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/groupview.js
View file @
f8f9a7ff
...
...
@@ -11,8 +11,15 @@ function GroupView() {
var
_this
=
this
;
this
.
query
(
"
queryMembers
"
,
"
#group-members-container
"
,
function
(
data
)
{
_this
.
loadSignificantTerms
();
_this
.
query
(
"
queryCandidates
"
,
"
#group-candidates-container
"
);
$
(
"
.group-members-loading
"
).
hide
();
});
this
.
loadSignificantTerms
(
function
(
data
)
{
$
(
"
.significant-terms-loading
"
).
hide
();
});
this
.
query
(
"
queryCandidates
"
,
"
#group-candidates-container
"
,
function
(
data
)
{
$
(
"
.group-candidates-loading
"
).
hide
();
});
};
...
...
@@ -76,7 +83,7 @@ GroupView.prototype.setupCloud = function() {
};
};
GroupView
.
prototype
.
loadSignificantTerms
=
function
()
{
GroupView
.
prototype
.
loadSignificantTerms
=
function
(
callback
)
{
var
_this
=
this
;
$
.
ajax
({
url
:
__util
.
composeUrl
(
"
groups/
"
+
_this
.
groupId
+
"
/significantTerms?size=
"
+
_this
.
options
.
wordcloud
.
tagcount
),
...
...
@@ -86,6 +93,9 @@ GroupView.prototype.loadSignificantTerms = function() {
if
(
data
!=
null
&&
data
!=
undefined
&&
data
.
length
>
0
)
{
$
(
"
#significant-terms-cloud
"
).
show
();
_this
.
fillSignificantTerms
(
data
);
if
(
callback
!==
undefined
&&
callback
!==
null
)
{
callback
(
data
);
}
}
},
error
:
__util
.
processServerError
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment