Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
79f81f50
Verified
Commit
79f81f50
authored
May 25, 2022
by
Cyril Vazquez
Browse files
Change originator func to populate profiles
parent
004e9565
Pipeline
#18471
failed with stages
in 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/presentation/maarchRM/Resources/view/dashboard/mainScreen/archiveForm.html
View file @
79f81f50
...
...
@@ -568,7 +568,9 @@
}
}
$
(
"
#originatorOrgRegNumber
"
).
on
(
'
change
'
,
function
()
{
$
(
"
#originatorOrgRegNumber
"
).
on
(
'
change
'
,
changeOriginator
());
function
changeOriginator
()
{
var
archivalProfile
=
$
(
'
#archivalProfile
'
);
archivalProfile
.
empty
();
var
option
=
$
(
'
<option/>
'
).
val
(
""
).
text
(
""
).
appendTo
(
archivalProfile
);
...
...
@@ -587,7 +589,7 @@
}
});
}
}
);
}
function
updateSelectProfilesFromArchivalProfileReference
(
archivalProfileReference
)
{
var
archivalProfile
=
$
(
'
#archivalProfile
'
);
...
...
src/presentation/maarchRM/Resources/view/dashboard/mainScreen/descriptionForm.html
View file @
79f81f50
...
...
@@ -959,12 +959,7 @@ input:invalid {
// console.log("je suis une sous-archive");
}
target
.
find
(
"
[name=originatorOrgRegNumber]
"
).
first
().
val
(
data
.
originatorOrgRegNumber
).
change
();
console
.
log
(
target
.
find
(
"
[name=archivalProfileReference]
"
).
first
());
$
(
'
#archivalProfile
'
).
find
(
"
option:selected
"
).
prop
(
"
selected
"
,
false
);
$
(
'
#archivalProfile
'
).
val
(
data
.
archivalProfileReference
).
change
();
console
.
log
(
$
(
'
#archivalProfile
'
));
// target.find("[name=archivalProfileReference]").first().find("option[value='"+data.archivalProfileReference+"']");
// console.log(target.find("[name=archivalProfileReference]").first().find("option[value='NOTSER']"));
}
$
.
each
(
data
,
function
(
property
,
value
)
{
if
(
property
==
"
description
"
)
{
...
...
Write
Preview
Supports
Markdown
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