Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
moodle-assignfeedback_editpdfplus
Commits
1b900505
Commit
1b900505
authored
Aug 13, 2017
by
M. Chardon
Browse files
bug couleur à la création
parent
32c93cc8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
amd/build/admin_panel.min.js
View file @
1b900505
This diff is collapsed.
Click to expand it.
amd/src/admin_panel.js
View file @
1b900505
...
...
@@ -509,6 +509,7 @@ define(['jquery'/*, 'core/yui'*/, 'core/notification', 'core/templates', 'core/f
.
done
(
function
(
html
,
js
)
{
fillResultAjax
(
$
(
'
#editpdlplus_tool_item
'
),
html
,
js
)
.
done
(
function
()
{
$
(
"
#canevas
"
).
hide
();
if
(
action
===
"
clone
"
)
{
$
(
"
#typetool
"
).
val
(
currentTool
.
typetool
);
$
(
"
#color
"
).
val
(
currentTool
.
color
);
...
...
@@ -519,8 +520,19 @@ define(['jquery'/*, 'core/yui'*/, 'core/notification', 'core/templates', 'core/f
$
(
"
#enabled
"
).
val
(
currentTool
.
enabled
);
$
(
"
#reply
"
).
val
(
currentTool
.
reply
);
$
(
"
#order
"
).
val
(
currentTool
.
order
);
currentTool
=
n
ull
;
currentTool
=
n
ew
Object
()
;
action
=
null
;
}
else
{
currentTool
=
new
Object
();
$
(
"
#typetool
"
).
on
(
"
change
"
,
function
()
{
currentTool
.
typetool
=
$
(
"
#typetool
"
).
val
();
var
typetoolEntity
=
getTypeTool
(
currentTool
.
typetool
);
currentTool
.
color
=
typetoolEntity
.
color
;
currentTool
.
catridgecolor
=
typetoolEntity
.
cartridge_color
;
$
(
"
#color
"
).
val
(
currentTool
.
color
);
$
(
"
#cartridgecolor
"
).
val
(
currentTool
.
catridgecolor
);
});
$
(
"
#typetool
"
).
change
();
}
$
(
"
#toolFormSubmit
"
).
on
(
"
click
"
,
function
()
{
if
(
$
(
"
#button
"
).
val
()
===
""
)
{
...
...
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