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
8737c314
Commit
8737c314
authored
Feb 24, 2018
by
Gradl, Tobias
Browse files
1004: Implement manual grouping feature
Task-Url:
https://pm.winseda.de/issues/1004
parent
e58eb15c
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/elementGroups.js
View file @
8737c314
...
...
@@ -70,6 +70,26 @@ ElementGroups.prototype.triggerRemoveFromGroup = function(itemId) {
__util
.
showLoginNote
();
return
;
}
var
_this
=
this
;
var
form_identifier
=
"
remove-item
"
;
this
.
form
=
null
;
modalFormHandler
=
new
ModalFormHandler
({
formFullUrl
:
__util
.
composeUrl
(
"
elementCollections/forms/removeItem
"
),
method
:
"
GET
"
,
data
:
{
itemId
:
itemId
},
contentType
:
"
json
"
,
identifier
:
form_identifier
,
translations
:
[{
placeholder
:
"
~*servererror.head
"
,
key
:
"
~de.dariah.genericsearch.view.async.servererror.head
"
},
{
placeholder
:
"
~*servererror.body
"
,
key
:
"
~de.dariah.genericsearch.view.async.servererror.body
"
},
{
placeholder
:
"
~*validationerrors.head
"
,
key
:
"
~eu.dariah.de.minfba.common.view.forms.validationerrors.head
"
},
{
placeholder
:
"
~*validationerrors.body
"
,
key
:
"
~eu.dariah.de.minfba.common.view.forms.validationerrors.body
"
}],
completeCallback
:
function
()
{
_this
.
refreshElementGroups
();
}
});
modalFormHandler
.
show
(
form_identifier
);
};
ElementGroups
.
prototype
.
queryGroup
=
function
(
groupId
)
{
...
...
@@ -81,6 +101,7 @@ ElementGroups.prototype.refreshElementGroups = function() {
$
.
ajax
({
url
:
__util
.
composeUrl
(
"
elementCollections/list
"
),
type
:
"
GET
"
,
dataType
:
"
json
"
,
success
:
function
(
data
)
{
if
(
data
!==
undefined
&&
data
!==
null
&&
data
.
length
>
0
)
{
$
(
"
#person-groups
"
).
text
(
""
);
...
...
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