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
b92a7bff
Commit
b92a7bff
authored
Jun 08, 2018
by
M. Chardon
Browse files
correction curseur fct de l'outil
parent
49bc6e52
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
yui/build/moodle-assignfeedback_editpdfplus-editor/moodle-assignfeedback_editpdfplus-editor-debug.js
View file @
b92a7bff
...
...
@@ -5015,7 +5015,7 @@ EDITOR.prototype = {
* @method refresh_button_state
*/
refresh_button_state
:
function
()
{
var
currenttoolnode
,
drawingregion
;
var
currenttoolnode
,
drawingregion
,
drawingcanvas
;
this
.
refresh_button_color_state
();
...
...
@@ -5030,6 +5030,21 @@ EDITOR.prototype = {
}
drawingregion
=
this
.
get_dialogue_element
(
SELECTOR
.
DRAWINGREGION
);
drawingregion
.
setAttribute
(
'
data-currenttool
'
,
this
.
currentedit
.
tool
);
drawingcanvas
=
this
.
get_dialogue_element
(
SELECTOR
.
DRAWINGCANVAS
);
switch
(
this
.
currentedit
.
tool
)
{
case
'
drag
'
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
move
'
);
break
;
case
'
highlight
'
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
text
'
);
break
;
case
'
select
'
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
default
'
);
break
;
default
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
crosshair
'
);
}
},
/**
...
...
@@ -5662,9 +5677,6 @@ EDITOR.prototype = {
if
(
tool
!==
"
select
"
&&
tool
!==
"
drag
"
)
{
this
.
lastannotationtool
=
tool
;
drawingregion
.
setStyle
(
'
cursor
'
,
'
crosshair
'
);
}
else
if
(
tool
===
"
drag
"
)
{
drawingregion
.
setStyle
(
'
cursor
'
,
'
move
'
);
}
if
(
tool
!==
"
select
"
)
{
...
...
yui/build/moodle-assignfeedback_editpdfplus-editor/moodle-assignfeedback_editpdfplus-editor-min.js
View file @
b92a7bff
This diff is collapsed.
Click to expand it.
yui/build/moodle-assignfeedback_editpdfplus-editor/moodle-assignfeedback_editpdfplus-editor.js
View file @
b92a7bff
...
...
@@ -5015,7 +5015,7 @@ EDITOR.prototype = {
* @method refresh_button_state
*/
refresh_button_state
:
function
()
{
var
currenttoolnode
,
drawingregion
;
var
currenttoolnode
,
drawingregion
,
drawingcanvas
;
this
.
refresh_button_color_state
();
...
...
@@ -5030,6 +5030,21 @@ EDITOR.prototype = {
}
drawingregion
=
this
.
get_dialogue_element
(
SELECTOR
.
DRAWINGREGION
);
drawingregion
.
setAttribute
(
'
data-currenttool
'
,
this
.
currentedit
.
tool
);
drawingcanvas
=
this
.
get_dialogue_element
(
SELECTOR
.
DRAWINGCANVAS
);
switch
(
this
.
currentedit
.
tool
)
{
case
'
drag
'
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
move
'
);
break
;
case
'
highlight
'
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
text
'
);
break
;
case
'
select
'
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
default
'
);
break
;
default
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
crosshair
'
);
}
},
/**
...
...
@@ -5662,9 +5677,6 @@ EDITOR.prototype = {
if
(
tool
!==
"
select
"
&&
tool
!==
"
drag
"
)
{
this
.
lastannotationtool
=
tool
;
drawingregion
.
setStyle
(
'
cursor
'
,
'
crosshair
'
);
}
else
if
(
tool
===
"
drag
"
)
{
drawingregion
.
setStyle
(
'
cursor
'
,
'
move
'
);
}
if
(
tool
!==
"
select
"
)
{
...
...
yui/src/editor/js/editor.js
View file @
b92a7bff
...
...
@@ -236,7 +236,7 @@ EDITOR.prototype = {
* @method refresh_button_state
*/
refresh_button_state
:
function
()
{
var
currenttoolnode
,
drawingregion
;
var
currenttoolnode
,
drawingregion
,
drawingcanvas
;
this
.
refresh_button_color_state
();
...
...
@@ -251,6 +251,21 @@ EDITOR.prototype = {
}
drawingregion
=
this
.
get_dialogue_element
(
SELECTOR
.
DRAWINGREGION
);
drawingregion
.
setAttribute
(
'
data-currenttool
'
,
this
.
currentedit
.
tool
);
drawingcanvas
=
this
.
get_dialogue_element
(
SELECTOR
.
DRAWINGCANVAS
);
switch
(
this
.
currentedit
.
tool
)
{
case
'
drag
'
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
move
'
);
break
;
case
'
highlight
'
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
text
'
);
break
;
case
'
select
'
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
default
'
);
break
;
default
:
drawingcanvas
.
setStyle
(
'
cursor
'
,
'
crosshair
'
);
}
},
/**
...
...
@@ -883,9 +898,6 @@ EDITOR.prototype = {
if
(
tool
!==
"
select
"
&&
tool
!==
"
drag
"
)
{
this
.
lastannotationtool
=
tool
;
drawingregion
.
setStyle
(
'
cursor
'
,
'
crosshair
'
);
}
else
if
(
tool
===
"
drag
"
)
{
drawingregion
.
setStyle
(
'
cursor
'
,
'
move
'
);
}
if
(
tool
!==
"
select
"
)
{
...
...
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