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
15a2401d
Commit
15a2401d
authored
Sep 13, 2016
by
M. Chardon
Browse files
3 positions d'affichage pour le cartouche
parent
2beb21e4
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
classes/annotation.php
View file @
15a2401d
...
...
@@ -70,7 +70,7 @@ class annotation {
public
$colour
=
'yellow'
;
/** @var bool displaylock for displaying this annotation */
public
$displaylock
=
0
;
public
$displaylock
=
1
;
/** @var bool displayrotation for displaying the sign of the annotation */
public
$displayrotation
=
0
;
...
...
db/install.xml
View file @
15a2401d
...
...
@@ -40,7 +40,7 @@
<FIELD
NAME=
"answerrequested"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"studentanswer"
TYPE=
"char"
LENGTH=
"500"
NOTNULL=
"false"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"studentstatus"
TYPE=
"char"
LENGTH=
"50"
NOTNULL=
"false"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"displaylock"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"
0
"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"displaylock"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"
1
"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"displayrotation"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"borderstyle"
TYPE=
"char"
LENGTH=
"20"
NOTNULL=
"false"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"parent_annot"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"false"
SEQUENCE=
"true"
/>
...
...
yui/build/moodle-assignfeedback_editpdfplus-editor/moodle-assignfeedback_editpdfplus-editor-debug.js
View file @
15a2401d
This diff is collapsed.
Click to expand it.
yui/build/moodle-assignfeedback_editpdfplus-editor/moodle-assignfeedback_editpdfplus-editor-min.js
View file @
15a2401d
This diff is collapsed.
Click to expand it.
yui/build/moodle-assignfeedback_editpdfplus-editor/moodle-assignfeedback_editpdfplus-editor.js
View file @
15a2401d
This diff is collapsed.
Click to expand it.
yui/src/editor/js/annotation.js
View file @
15a2401d
...
...
@@ -115,7 +115,7 @@ Y.extend(ANNOTATION, Y.Base, {
tooltypefamille
:
null
,
divcartridge
:
''
,
textannot
:
''
,
displaylock
:
0
,
displaylock
:
1
,
displayrotation
:
0
,
borderstyle
:
''
,
parent_annot
:
0
,
...
...
@@ -147,7 +147,7 @@ Y.extend(ANNOTATION, Y.Base, {
this
.
drawable
=
false
;
this
.
tooltype
=
config
.
tooltype
;
this
.
textannot
=
config
.
parent_annot_element
.
textannot
;
this
.
displaylock
=
config
.
parent_annot_element
.
displaylock
;
this
.
displaylock
=
parseInt
(
config
.
parent_annot_element
.
displaylock
)
;
this
.
displayrotation
=
config
.
parent_annot_element
.
displayrotation
;
this
.
borderstyle
=
config
.
parent_annot_element
.
borderstyle
||
'
solid
'
;
this
.
parent_annot
=
config
.
parent_annot_element
.
id
;
...
...
@@ -169,7 +169,7 @@ Y.extend(ANNOTATION, Y.Base, {
this
.
drawable
=
false
;
this
.
tooltype
=
config
.
tooltype
;
this
.
textannot
=
config
.
textannot
;
this
.
displaylock
=
config
.
displaylock
;
this
.
displaylock
=
parseInt
(
config
.
displaylock
)
;
this
.
displayrotation
=
config
.
displayrotation
;
this
.
borderstyle
=
config
.
borderstyle
||
'
solid
'
;
this
.
parent_annot
=
config
.
parent_annot
;
...
...
@@ -303,7 +303,6 @@ Y.extend(ANNOTATION, Y.Base, {
divedition
+=
"
class='assignfeedback_editpdfplus_
"
+
this
.
tooltypefamille
.
label
+
"
_edition'
"
;
divedition
+=
"
style='display:none;'>
"
;
divedition
+=
"
<textarea id='
"
+
this
.
divcartridge
+
"
_editinput' type='text' value=
\"
"
+
this
.
get_valref
()
+
"
\"
>
"
+
this
.
get_valref
()
+
"
</textarea>
"
;
//divedition += "<input id='" + this.divcartridge + "_editinput' type='text' value=\"" + this.get_valref() + "\" />";
divedition
+=
"
</div>
"
;
var
diveditiondisplay
=
Y
.
Node
.
create
(
divedition
);
var
propositions
=
this
.
tooltype
.
texts
;
...
...
@@ -329,9 +328,9 @@ Y.extend(ANNOTATION, Y.Base, {
var
divinputdisplay
=
this
.
get_div_input
(
colorcartridge
);
divinputdisplay
.
addClass
(
'
assignfeedback_editpdfplus_
'
+
this
.
tooltypefamille
.
label
+
'
_input
'
);
var
inputvalref
=
this
.
get_input_valref
();
var
onof
=
0
;
if
(
this
.
displaylock
===
'
1
'
)
{
onof
=
1
;
var
onof
=
1
;
if
(
this
.
displaylock
)
{
onof
=
this
.
displaylock
;
}
var
inputonof
=
Y
.
Node
.
create
(
"
<input type='hidden' id='
"
+
this
.
divcartridge
+
"
_onof' value=
"
+
onof
+
"
/>
"
);
var
readonly
=
this
.
editor
.
get
(
'
readonly
'
);
...
...
@@ -344,26 +343,45 @@ Y.extend(ANNOTATION, Y.Base, {
var
readonly
=
this
.
editor
.
get
(
'
readonly
'
);
if
(
!
readonly
)
{
divconteneurdisplay
.
append
(
this
.
get_button_visibility
());
divconteneurdisplay
.
append
(
this
.
get_button_visibility_left
());
divconteneurdisplay
.
append
(
this
.
get_button_visibility_right
());
divconteneurdisplay
.
append
(
this
.
get_button_save
());
divconteneurdisplay
.
append
(
this
.
get_button_cancel
());
}
return
divconteneurdisplay
;
},
get_button_visibility
:
function
()
{
var
buttonvisibility
=
"
<button id='
"
+
this
.
divcartridge
+
"
_buttonedit'
"
;
get_button_visibility
_right
:
function
()
{
var
buttonvisibility
=
"
<button id='
"
+
this
.
divcartridge
+
"
_buttonedit
_right
'
"
;
buttonvisibility
+=
"
><img src='
"
;
if
(
this
.
displaylock
===
1
)
{
buttonvisibility
+=
M
.
util
.
image_url
(
'
t/left
'
,
'
core
'
);
}
else
{
buttonvisibility
+=
M
.
util
.
image_url
(
'
t/right
'
,
'
core
'
);
}
buttonvisibility
+=
M
.
util
.
image_url
(
'
t/right
'
,
'
core
'
);
buttonvisibility
+=
"
' /></button>
"
;
var
buttonvisibilitydisplay
=
Y
.
Node
.
create
(
buttonvisibility
);
buttonvisibilitydisplay
.
on
(
'
click
'
,
this
.
change_visibility_annot
,
this
,
'
r
'
);
return
buttonvisibilitydisplay
;
},
get_button_visibility_left
:
function
()
{
var
buttonvisibility
=
"
<button id='
"
+
this
.
divcartridge
+
"
_buttonedit_left'
"
;
buttonvisibility
+=
"
><img src='
"
;
buttonvisibility
+=
M
.
util
.
image_url
(
'
t/left
'
,
'
core
'
);
buttonvisibility
+=
"
' /></button>
"
;
var
buttonvisibilitydisplay
=
Y
.
Node
.
create
(
buttonvisibility
);
buttonvisibilitydisplay
.
on
(
'
click
'
,
this
.
change_visibility_annot
,
this
);
buttonvisibilitydisplay
.
on
(
'
click
'
,
this
.
change_visibility_annot
,
this
,
'
l
'
);
return
buttonvisibilitydisplay
;
},
/*get_button_visibility: function () {
var buttonvisibility = "<button id='" + this.divcartridge + "_buttonedit' ";
buttonvisibility += "><img src='";
if (this.displaylock === 1) {
buttonvisibility += M.util.image_url('t/left', 'core');
} else {
buttonvisibility += M.util.image_url('t/right', 'core');
}
buttonvisibility += "' /></button>";
var buttonvisibilitydisplay = Y.Node.create(buttonvisibility);
buttonvisibilitydisplay.on('click', this.change_visibility_annot, this);
return buttonvisibilitydisplay;
},*/
get_button_save
:
function
()
{
var
buttonsave
=
"
<button id='
"
+
this
.
divcartridge
+
"
_buttonsave' style='display:none;margin-left:110px;'><img src='
"
+
M
.
util
.
image_url
(
'
t/check
'
,
'
core
'
)
+
"
' /></button>
"
;
var
buttonsavedisplay
=
Y
.
Node
.
create
(
buttonsave
);
...
...
@@ -395,7 +413,8 @@ Y.extend(ANNOTATION, Y.Base, {
var
divdisplay
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_display
"
);
var
interrupt
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_onof
"
);
var
valref
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_valref
"
).
get
(
'
value
'
);
var
buttonplus
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit
"
);
var
buttonplusr
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_right
"
);
var
buttonplusl
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_left
"
);
if
(
valref
===
''
)
{
if
(
this
.
editor
.
get
(
'
readonly
'
))
{
divdisplay
.
setContent
(
''
);
...
...
@@ -403,37 +422,52 @@ Y.extend(ANNOTATION, Y.Base, {
divdisplay
.
setContent
(
'
 
'
);
}
}
if
(
interrupt
.
get
(
'
value
'
)
===
'
0
'
)
{
if
(
interrupt
.
get
(
'
value
'
)
===
'
1
'
)
{
if
(
valref
!==
''
)
{
divdisplay
.
setContent
(
valref
.
substr
(
0
,
20
));
}
if
(
buttonplus
)
{
buttonplus
.
one
(
'
img
'
).
setAttribute
(
'
src
'
,
M
.
util
.
image_url
(
'
t/right
'
,
'
core
'
));
if
(
buttonplusr
)
{
buttonplusr
.
show
();
}
if
(
buttonplusl
)
{
buttonplusl
.
show
();
}
}
else
if
(
interrupt
.
get
(
'
value
'
)
===
'
0
'
)
{
if
(
valref
!==
''
)
{
divdisplay
.
setContent
(
'
...
'
);
}
if
(
buttonplusr
)
{
buttonplusr
.
show
();
}
if
(
buttonplusl
)
{
buttonplusl
.
hide
();
}
}
else
{
if
(
valref
!==
''
)
{
divdisplay
.
setContent
(
valref
);
}
if
(
buttonplus
)
{
buttonplus
.
one
(
'
img
'
).
setAttribute
(
'
src
'
,
M
.
util
.
image_url
(
'
t/left
'
,
'
core
'
)
);
if
(
buttonplus
r
)
{
buttonplus
r
.
hide
(
);
}
if
(
buttonplusl
)
{
buttonplusl
.
show
();
}
}
if
(
this
.
tooltypefamille
.
label
===
'
frame
'
)
{
buttonplusr
.
hide
();
buttonplusl
.
hide
();
}
},
change_visibility_annot
:
function
()
{
//var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display");
change_visibility_annot
:
function
(
e
,
sens
)
{
var
interrupt
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_onof
"
);
// var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value');
//var buttonplus = this.editor.get_dialogue_element('#' + this.divcartridge + "_buttonedit");
// if (valref === '') {
// divdisplay.setContent('  ');
// }
if
(
interrupt
.
get
(
'
value
'
)
===
'
0
'
)
{
interrupt
.
set
(
'
value
'
,
1
);
this
.
displaylock
=
1
;
var
finalvalue
=
parseInt
(
interrupt
.
get
(
'
value
'
));
if
(
sens
===
'
r
'
)
{
finalvalue
+=
1
;
}
else
{
interrupt
.
set
(
'
value
'
,
0
);
this
.
displaylock
=
2
;
finalvalue
-=
1
;
}
interrupt
.
set
(
'
value
'
,
finalvalue
);
this
.
displaylock
=
finalvalue
;
this
.
apply_visibility_annot
();
this
.
editor
.
save_current_page
();
},
...
...
@@ -537,13 +571,17 @@ Y.extend(ANNOTATION, Y.Base, {
var
divprincipale
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
);
var
divdisplay
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_display
"
);
var
divedit
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_edit
"
);
var
buttonplus
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit
"
);
var
buttonplusr
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_right
"
);
var
buttonplusl
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_left
"
);
var
buttonsave
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonsave
"
);
var
buttoncancel
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttoncancel
"
);
var
input
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_editinput
"
);
divdisplay
.
hide
();
if
(
buttonplus
)
{
buttonplus
.
hide
();
if
(
buttonplusr
)
{
buttonplusr
.
hide
();
}
if
(
buttonplusl
)
{
buttonplusl
.
hide
();
}
divedit
.
show
();
buttonsave
.
show
();
...
...
@@ -586,6 +624,7 @@ Y.extend(ANNOTATION, Y.Base, {
input
.
set
(
'
value
'
,
result
);
}
this
.
hide_edit
();
this
.
apply_visibility_annot
();
var
divprincipale
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
);
divprincipale
.
detach
();
}
...
...
@@ -595,16 +634,12 @@ Y.extend(ANNOTATION, Y.Base, {
var
divprincipale
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
);
var
divdisplay
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_display
"
);
var
divedit
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_edit
"
);
var
buttonplus
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit
"
);
var
buttonsave
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonsave
"
);
var
buttoncancel
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttoncancel
"
);
if
(
divdisplay
)
{
divdisplay
.
show
();
divdisplay
.
set
(
'
style
'
,
'
display:inline;color:
'
+
this
.
get_color_cartridge
()
+
'
;
'
);
}
if
(
buttonplus
)
{
buttonplus
.
show
();
}
divedit
.
hide
();
buttonsave
.
hide
();
buttoncancel
.
hide
();
...
...
yui/src/editor/js/annotationcommentplus.js
View file @
15a2401d
...
...
@@ -149,48 +149,10 @@ Y.extend(ANNOTATIONCOMMENTPLUS, M.assignfeedback_editpdfplus.annotation, {
//creation input
var
divconteneurdisplay
=
this
.
get_div_container
(
colorcartridge
);
divdisplay
.
append
(
divconteneurdisplay
);
/*var divconteneur = "<div ";
divconteneur += "class='assignfeedback_editpdfplus_commentplus_conteneur' >";
divconteneur += "</div>";
var divconteneurdisplay = Y.Node.create(divconteneur);
var divinputdisplay = this.get_div_input(colorcartridge);
divinputdisplay.addClass('assignfeedback_editpdfplus_commentplus_input');
divinputdisplay.setStyles({'width': '200px'});
var inputvalref = this.get_input_valref();
var onof = 0;
if (this.displaylock === '1') {
onof = 1;
}
var inputonof = Y.Node.create("<input type='hidden' id='" + this.divcartridge + "_onof' value=" + onof + " />");
divinputdisplay.on('click', this.edit_annot, this);
var buttonvisibility = "<button id='" + this.divcartridge + "_buttonedit' ";
buttonvisibility += "><img src='";
if (this.displaylock === 1) {
buttonvisibility += M.util.image_url('t/up', 'core');
} else {
buttonvisibility += M.util.image_url('t/down', 'core');
}
buttonvisibility += "' /></button>";
var buttonvisibilitydisplay = Y.Node.create(buttonvisibility);
buttonvisibilitydisplay.on('click', this.change_visibility_annot, this);
var buttonsave = "<button id='" + this.divcartridge + "_buttonsave' style='display:none;margin-left:110px;'><img src='" + M.util.image_url('t/check', 'core') + "' /></button>";
var buttonsavedisplay = Y.Node.create(buttonsave);
buttonsavedisplay.on('click', this.save_annot, this, null);
var buttoncancel = "<button id='" + this.divcartridge + "_buttoncancel' style='display:none;'><img src='" + M.util.image_url('t/reset', 'core') + "' /></button>";
var buttoncanceldisplay = Y.Node.create(buttoncancel);
buttoncanceldisplay.on('click', this.cancel_edit, this);
divconteneurdisplay.append(divinputdisplay);
divconteneurdisplay.append(inputvalref);
divconteneurdisplay.append(inputonof);
divconteneurdisplay.append(buttonvisibilitydisplay);
divconteneurdisplay.append(buttonsavedisplay);
divconteneurdisplay.append(buttoncanceldisplay);
divdisplay.append(divconteneurdisplay);*/
//creation de la div d'edition
if
(
!
this
.
editor
.
get
(
'
readonly
'
))
{
var
diveditiondisplay
=
this
.
get_div_edition
();
//diveditiondisplay.addClass('assignfeedback_editpdfplus_commentplus_edition');
divconteneurdisplay
.
append
(
diveditiondisplay
);
}
...
...
@@ -210,7 +172,8 @@ Y.extend(ANNOTATIONCOMMENTPLUS, M.assignfeedback_editpdfplus.annotation, {
var
divdisplay
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_display
"
);
var
interrupt
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_onof
"
);
var
valref
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_valref
"
).
get
(
'
value
'
);
var
buttonplus
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit
"
);
var
buttonplusr
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_right
"
);
var
buttonplusl
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_left
"
);
if
(
valref
===
''
)
{
if
(
this
.
editor
.
get
(
'
readonly
'
))
{
divdisplay
.
setContent
(
''
);
...
...
@@ -222,16 +185,20 @@ Y.extend(ANNOTATIONCOMMENTPLUS, M.assignfeedback_editpdfplus.annotation, {
if
(
valref
!==
''
)
{
divdisplay
.
setContent
(
valref
.
substr
(
0
,
20
));
}
if
(
buttonplus
)
{
buttonplus
.
one
(
'
img
'
).
setAttribute
(
'
src
'
,
M
.
util
.
image_url
(
'
t/down
'
,
'
core
'
));
if
(
buttonplusr
)
{
buttonplusr
.
one
(
'
img
'
).
setAttribute
(
'
src
'
,
M
.
util
.
image_url
(
'
t/down
'
,
'
core
'
));
buttonplusr
.
show
();
}
buttonplusl
.
hide
();
}
else
{
if
(
valref
!==
''
)
{
divdisplay
.
setContent
(
'
<table><tr><td>
'
+
valref
.
replace
(
/
\n
/g
,
"
<br/>
"
)
+
'
</td></tr></table><br/>
'
);
}
if
(
buttonplus
)
{
buttonplus
.
one
(
'
img
'
).
setAttribute
(
'
src
'
,
M
.
util
.
image_url
(
'
t/up
'
,
'
core
'
));
if
(
buttonplusl
)
{
buttonplusl
.
one
(
'
img
'
).
setAttribute
(
'
src
'
,
M
.
util
.
image_url
(
'
t/up
'
,
'
core
'
));
buttonplusl
.
show
();
}
buttonplusr
.
hide
();
}
},
save_annot
:
function
()
{
...
...
yui/src/editor/js/annotationframe.js
View file @
15a2401d
...
...
@@ -293,8 +293,10 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
this
.
apply_visibility_annot
();
if
(
!
this
.
editor
.
get
(
'
readonly
'
))
{
var
buttonplus
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit
"
);
buttonplus
.
hide
();
var
buttonplusr
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_right
"
);
var
buttonplusl
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_left
"
);
buttonplusr
.
hide
();
buttonplusl
.
hide
();
}
}
else
{
...
...
@@ -473,13 +475,15 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
var
divdisplay
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_display
"
);
var
buttonrender
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonpencil
"
);
var
buttonadd
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonadd
"
);
var
buttonplus
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit
"
);
var
buttonplusr
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_right
"
);
var
buttonplusl
=
this
.
editor
.
get_dialogue_element
(
'
#
'
+
this
.
divcartridge
+
"
_buttonedit_left
"
);
divdisplay
.
set
(
'
style
'
,
'
display:inline;color:
'
+
this
.
get_color
()
+
'
;
'
);
buttonrender
.
show
();
buttonadd
.
show
();
if
(
buttonplus
)
{
buttonplus
.
hide
();
if
(
buttonplus
r
)
{
buttonplus
r
.
hide
();
}
buttonplusl
.
hide
();
},
/**
* Delete an annotation
...
...
yui/src/editor/js/annotationhighlightplus.js
View file @
15a2401d
...
...
@@ -154,42 +154,6 @@ Y.extend(ANNOTATIONHIGHLIGHTPLUS, M.assignfeedback_editpdfplus.annotation, {
divdisplay
.
append
(
divcartridge
);
//creation input
/*var divconteneur = "<div ";
divconteneur += "class='assignfeedback_editpdfplus_hightlightplus_conteneur' >";
divconteneur += "</div>";
var divconteneurdisplay = Y.Node.create(divconteneur);*/
//divconteneurdisplay.on('click', this.edit_annot, this);
/*var divinputdisplay = this.get_div_input(colorcartridge);
divinputdisplay.addClass('assignfeedback_editpdfplus_hightlightplus_input');
var inputvalref = this.get_input_valref();
var onof = 0;
if (this.displaylock === '1') {
onof = 1;
}
var inputonof = Y.Node.create("<input type='hidden' id='" + this.divcartridge + "_onof' value=" + onof + " />");
divinputdisplay.on('click', this.edit_annot, this);
var buttonvisibility = "<button id='" + this.divcartridge + "_buttonedit' ";
buttonvisibility += "><img src='";
if (this.displaylock === 1) {
buttonvisibility += M.util.image_url('t/left', 'core');
} else {
buttonvisibility += M.util.image_url('t/right', 'core');
}
buttonvisibility += "' /></button>";
var buttonvisibilitydisplay = Y.Node.create(buttonvisibility);
buttonvisibilitydisplay.on('click', this.change_visibility_annot, this);
var buttonsave = "<button id='" + this.divcartridge + "_buttonsave' style='display:none;margin-left:110px;'><img src='" + M.util.image_url('t/check', 'core') + "' /></button>";
var buttonsavedisplay = Y.Node.create(buttonsave);
buttonsavedisplay.on('click', this.save_annot, this, null);
var buttoncancel = "<button id='" + this.divcartridge + "_buttoncancel' style='display:none;'><img src='" + M.util.image_url('t/reset', 'core') + "' /></button>";
var buttoncanceldisplay = Y.Node.create(buttoncancel);
buttoncanceldisplay.on('click', this.cancel_edit, this);
divconteneurdisplay.append(divinputdisplay);
divconteneurdisplay.append(inputvalref);
divconteneurdisplay.append(inputonof);
divconteneurdisplay.append(buttonvisibilitydisplay);
divconteneurdisplay.append(buttonsavedisplay);
divconteneurdisplay.append(buttoncanceldisplay);*/
var
divconteneurdisplay
=
this
.
get_div_container
(
colorcartridge
);
divdisplay
.
append
(
divconteneurdisplay
);
if
(
this
.
tooltype
.
reply
===
1
)
{
...
...
@@ -199,7 +163,6 @@ Y.extend(ANNOTATIONHIGHLIGHTPLUS, M.assignfeedback_editpdfplus.annotation, {
//creation de la div d'edition
if
(
!
this
.
editor
.
get
(
'
readonly
'
))
{
var
diveditiondisplay
=
this
.
get_div_edition
();
//diveditiondisplay.addClass('assignfeedback_editpdfplus_hightlightplus_edition');
divconteneurdisplay
.
append
(
diveditiondisplay
);
}
...
...
yui/src/editor/js/annotationstampcomment.js
View file @
15a2401d
...
...
@@ -158,44 +158,6 @@ Y.extend(ANNOTATIONSTAMPCOMMENT, M.assignfeedback_editpdfplus.annotation, {
//creation input
var
divconteneurdisplay
=
this
.
get_div_container
(
colorcartridge
);
divdisplay
.
append
(
divconteneurdisplay
);
/*var divconteneur = "<div ";
divconteneur += "class='assignfeedback_editpdfplus_stampcomment_conteneur' >";
divconteneur += "</div>";
var divconteneurdisplay = Y.Node.create(divconteneur);
var divinputdisplay = this.get_div_input(colorcartridge);
divinputdisplay.addClass('assignfeedback_editpdfplus_stampcomment_input');
var inputvalref = this.get_input_valref();
var onof = 0;
if (this.displaylock === '1') {
onof = 1;
}
var inputonof = Y.Node.create("<input type='hidden' id='" + this.divcartridge + "_onof' value=" + onof + " />");
divinputdisplay.on('click', this.edit_annot, this);
var buttonvisibility = "<button id='" + this.divcartridge + "_buttonedit' ";
buttonvisibility += "><img src='";
if (this.displaylock === 1) {
buttonvisibility += M.util.image_url('t/left', 'core');
} else {
buttonvisibility += M.util.image_url('t/right', 'core');
}
buttonvisibility += "' /></button>";
var buttonvisibilitydisplay = Y.Node.create(buttonvisibility);
buttonvisibilitydisplay.on('click', this.change_visibility_annot, this);
var buttonsave = "<button id='" + this.divcartridge + "_buttonsave' style='display:none;margin-left:110px;'><img src='" + M.util.image_url('t/check', 'core') + "' /></button>";
var buttonsavedisplay = Y.Node.create(buttonsave);
buttonsavedisplay.on('click', this.save_annot, this, null);
var buttoncancel = "<button id='" + this.divcartridge + "_buttoncancel' style='display:none;'><img src='" + M.util.image_url('t/reset', 'core') + "' /></button>";
var buttoncanceldisplay = Y.Node.create(buttoncancel);
buttoncanceldisplay.on('click', this.cancel_edit, this);
divconteneurdisplay.append(divinputdisplay);
divconteneurdisplay.append(inputvalref);
divconteneurdisplay.append(inputonof);
divconteneurdisplay.append(inputrotationdisplay);
divconteneurdisplay.append(buttonvisibilitydisplay);
divconteneurdisplay.append(buttonsavedisplay);
divconteneurdisplay.append(buttoncanceldisplay);
divconteneurdisplay.append(buttonrotationdisplay);
divdisplay.append(divconteneurdisplay);*/
if
(
!
this
.
editor
.
get
(
'
readonly
'
))
{
var
rotationvalue
=
0
;
if
(
this
.
displayrotation
>
0
)
{
...
...
@@ -212,7 +174,6 @@ Y.extend(ANNOTATIONSTAMPCOMMENT, M.assignfeedback_editpdfplus.annotation, {
//creation de la div d'edition
if
(
!
this
.
editor
.
get
(
'
readonly
'
))
{
var
diveditiondisplay
=
this
.
get_div_edition
();
//diveditiondisplay.addClass('assignfeedback_editpdfplus_stampcomment_edition');
divconteneurdisplay
.
append
(
diveditiondisplay
);
}
...
...
yui/src/editor/js/annotationverticalline.js
View file @
15a2401d
...
...
@@ -166,47 +166,10 @@ Y.extend(ANNOTATIONVERTICALLINE, M.assignfeedback_editpdfplus.annotation, {
//creation input
var
divconteneurdisplay
=
this
.
get_div_container
(
colorcartridge
);
divdisplay
.
append
(
divconteneurdisplay
);
/*var divconteneur = "<div ";
divconteneur += "class='assignfeedback_editpdfplus_verticalline_conteneur' >";
divconteneur += "</div>";
var divconteneurdisplay = Y.Node.create(divconteneur);
var divinputdisplay = this.get_div_input(colorcartridge);
divinputdisplay.addClass('assignfeedback_editpdfplus_verticalline_input');
var inputvalref = this.get_input_valref();
var onof = 0;
if (this.displaylock === '1') {
onof = 1;
}
var inputonof = Y.Node.create("<input type='hidden' id='" + this.divcartridge + "_onof' value=" + onof + " />");
divinputdisplay.on('click', this.edit_annot, this);
var buttonvisibility = "<button id='" + this.divcartridge + "_buttonedit' ";
buttonvisibility += "><img src='";
if (this.displaylock === 1) {
buttonvisibility += M.util.image_url('t/left', 'core');
} else {
buttonvisibility += M.util.image_url('t/right', 'core');
}
buttonvisibility += "' /></button>";
var buttonvisibilitydisplay = Y.Node.create(buttonvisibility);
buttonvisibilitydisplay.on('click', this.change_visibility_annot, this);
var buttonsave = "<button id='" + this.divcartridge + "_buttonsave' style='display:none;margin-left:110px;'><img src='" + M.util.image_url('t/check', 'core') + "' /></button>";
var buttonsavedisplay = Y.Node.create(buttonsave);
buttonsavedisplay.on('click', this.save_annot, this, null);
var buttoncancel = "<button id='" + this.divcartridge + "_buttoncancel' style='display:none;'><img src='" + M.util.image_url('t/reset', 'core') + "' /></button>";
var buttoncanceldisplay = Y.Node.create(buttoncancel);
buttoncanceldisplay.on('click', this.cancel_edit, this);
divconteneurdisplay.append(divinputdisplay);
divconteneurdisplay.append(inputvalref);
divconteneurdisplay.append(inputonof);
divconteneurdisplay.append(buttonvisibilitydisplay);
divconteneurdisplay.append(buttonsavedisplay);
divconteneurdisplay.append(buttoncanceldisplay);
divdisplay.append(divconteneurdisplay);*/
//creation de la div d'edition
if
(
!
this
.
editor
.
get
(
'
readonly
'
))
{
var
diveditiondisplay
=
this
.
get_div_edition
();
//diveditiondisplay.addClass('assignfeedback_editpdfplus_verticalline_edition');
divconteneurdisplay
.
append
(
diveditiondisplay
);
}
...
...
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