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
9ce719e9
Commit
9ce719e9
authored
Sep 06, 2016
by
M. Chardon
Browse files
vue lecture étudiante : propre, sans interaction et bouton
parent
779534ef
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
yui/build/moodle-assignfeedback_editpdfplus-editor/moodle-assignfeedback_editpdfplus-editor-debug.js
View file @
9ce719e9
...
...
@@ -805,7 +805,7 @@ Y.extend(ANNOTATION, Y.Base, {
div
+=
"
</div>
"
;
return
Y
.
Node
.
create
(
div
);
},
get_div_cartridge_label
:
function
(
colorcartridge
)
{
get_div_cartridge_label
:
function
(
colorcartridge
,
draggable
)
{
var
divcartridge
=
"
<div
"
;
divcartridge
+=
"
id='
"
+
this
.
divcartridge
+
"
_cartridge'
"
;
divcartridge
+=
"
class='assignfeedback_editpdfplus_
"
+
this
.
tooltypefamille
.
label
+
"
_cartridge'
"
;
...
...
@@ -817,7 +817,12 @@ Y.extend(ANNOTATION, Y.Base, {
divcartridge
+=
"
>
"
;
divcartridge
+=
this
.
tooltype
.
cartridge
;
divcartridge
+=
"
</div>
"
;
return
Y
.
Node
.
create
(
divcartridge
);
var
divcartridgedisplay
=
Y
.
Node
.
create
(
divcartridge
);
if
(
draggable
&&
!
this
.
editor
.
get
(
'
readonly
'
))
{
divcartridgedisplay
.
on
(
'
mousedown
'
,
this
.
move_cartridge_begin
,
this
);
return
divcartridgedisplay
;
}
return
divcartridgedisplay
;
},
get_div_input
:
function
(
colorcartridge
)
{
var
divinput
=
"
<div
"
;
...
...
@@ -2987,11 +2992,10 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
var
divdisplay
=
this
.
get_div_cartridge
(
colorcartridge
);
divdisplay
.
addClass
(
'
assignfeedback_editpdfplus_frame
'
);
divdisplay
.
setStyles
({
'
border-style
'
:
this
.
borderstyle
});
divdisplay
.
set
(
'
draggable
'
,
'
true
'
);
//
divdisplay.set('draggable', 'true');
// inscription entete
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
);
divcartridge
.
on
(
'
mousedown
'
,
this
.
move_cartridge_begin
,
this
);
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
,
true
);
divdisplay
.
append
(
divcartridge
);
//creation input
...
...
@@ -3147,18 +3151,18 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
this
.
editor
.
save_current_page
();
},
/*apply_visibility_annot: function () {
var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display");
var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value');
if (valref === '') {
if (this.editor.get('readonly')) {
divdisplay.setContent('');
} else {
divdisplay.setContent('  ');
}
} else if (valref !== '') {
divdisplay.setContent(valref);
}
},*/
var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display");
var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value');
if (valref === '') {
if (this.editor.get('readonly')) {
divdisplay.setContent('');
} else {
divdisplay.setContent('  ');
}
} else if (valref !== '') {
divdisplay.setContent(valref);
}
},*/
add_annot
:
function
(
e
)
{
this
.
editor
.
currentedit
.
parent_annot_element
=
this
;
this
.
editor
.
handle_tool_button
(
e
,
TOOLTYPELIB
.
FRAME
,
'
ctbutton
'
+
this
.
toolid
,
1
);
...
...
@@ -3502,8 +3506,7 @@ Y.extend(ANNOTATIONVERTICALLINE, M.assignfeedback_editpdfplus.annotation, {
divdisplay
.
addClass
(
'
assignfeedback_editpdfplus_verticalline
'
);
// inscription entete
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
);
divcartridge
.
on
(
'
mousedown
'
,
this
.
move_cartridge_begin
,
this
);
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
,
true
);
divdisplay
.
append
(
divcartridge
);
//creation input
...
...
yui/build/moodle-assignfeedback_editpdfplus-editor/moodle-assignfeedback_editpdfplus-editor-min.js
View file @
9ce719e9
This diff is collapsed.
Click to expand it.
yui/build/moodle-assignfeedback_editpdfplus-editor/moodle-assignfeedback_editpdfplus-editor.js
View file @
9ce719e9
...
...
@@ -805,7 +805,7 @@ Y.extend(ANNOTATION, Y.Base, {
div
+=
"
</div>
"
;
return
Y
.
Node
.
create
(
div
);
},
get_div_cartridge_label
:
function
(
colorcartridge
)
{
get_div_cartridge_label
:
function
(
colorcartridge
,
draggable
)
{
var
divcartridge
=
"
<div
"
;
divcartridge
+=
"
id='
"
+
this
.
divcartridge
+
"
_cartridge'
"
;
divcartridge
+=
"
class='assignfeedback_editpdfplus_
"
+
this
.
tooltypefamille
.
label
+
"
_cartridge'
"
;
...
...
@@ -817,7 +817,12 @@ Y.extend(ANNOTATION, Y.Base, {
divcartridge
+=
"
>
"
;
divcartridge
+=
this
.
tooltype
.
cartridge
;
divcartridge
+=
"
</div>
"
;
return
Y
.
Node
.
create
(
divcartridge
);
var
divcartridgedisplay
=
Y
.
Node
.
create
(
divcartridge
);
if
(
draggable
&&
!
this
.
editor
.
get
(
'
readonly
'
))
{
divcartridgedisplay
.
on
(
'
mousedown
'
,
this
.
move_cartridge_begin
,
this
);
return
divcartridgedisplay
;
}
return
divcartridgedisplay
;
},
get_div_input
:
function
(
colorcartridge
)
{
var
divinput
=
"
<div
"
;
...
...
@@ -2985,11 +2990,10 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
var
divdisplay
=
this
.
get_div_cartridge
(
colorcartridge
);
divdisplay
.
addClass
(
'
assignfeedback_editpdfplus_frame
'
);
divdisplay
.
setStyles
({
'
border-style
'
:
this
.
borderstyle
});
divdisplay
.
set
(
'
draggable
'
,
'
true
'
);
//
divdisplay.set('draggable', 'true');
// inscription entete
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
);
divcartridge
.
on
(
'
mousedown
'
,
this
.
move_cartridge_begin
,
this
);
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
,
true
);
divdisplay
.
append
(
divcartridge
);
//creation input
...
...
@@ -3145,18 +3149,18 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
this
.
editor
.
save_current_page
();
},
/*apply_visibility_annot: function () {
var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display");
var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value');
if (valref === '') {
if (this.editor.get('readonly')) {
divdisplay.setContent('');
} else {
divdisplay.setContent('  ');
}
} else if (valref !== '') {
divdisplay.setContent(valref);
}
},*/
var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display");
var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value');
if (valref === '') {
if (this.editor.get('readonly')) {
divdisplay.setContent('');
} else {
divdisplay.setContent('  ');
}
} else if (valref !== '') {
divdisplay.setContent(valref);
}
},*/
add_annot
:
function
(
e
)
{
this
.
editor
.
currentedit
.
parent_annot_element
=
this
;
this
.
editor
.
handle_tool_button
(
e
,
TOOLTYPELIB
.
FRAME
,
'
ctbutton
'
+
this
.
toolid
,
1
);
...
...
@@ -3498,8 +3502,7 @@ Y.extend(ANNOTATIONVERTICALLINE, M.assignfeedback_editpdfplus.annotation, {
divdisplay
.
addClass
(
'
assignfeedback_editpdfplus_verticalline
'
);
// inscription entete
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
);
divcartridge
.
on
(
'
mousedown
'
,
this
.
move_cartridge_begin
,
this
);
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
,
true
);
divdisplay
.
append
(
divcartridge
);
//creation input
...
...
yui/src/editor/js/annotation.js
View file @
9ce719e9
...
...
@@ -264,7 +264,7 @@ Y.extend(ANNOTATION, Y.Base, {
div
+=
"
</div>
"
;
return
Y
.
Node
.
create
(
div
);
},
get_div_cartridge_label
:
function
(
colorcartridge
)
{
get_div_cartridge_label
:
function
(
colorcartridge
,
draggable
)
{
var
divcartridge
=
"
<div
"
;
divcartridge
+=
"
id='
"
+
this
.
divcartridge
+
"
_cartridge'
"
;
divcartridge
+=
"
class='assignfeedback_editpdfplus_
"
+
this
.
tooltypefamille
.
label
+
"
_cartridge'
"
;
...
...
@@ -276,7 +276,12 @@ Y.extend(ANNOTATION, Y.Base, {
divcartridge
+=
"
>
"
;
divcartridge
+=
this
.
tooltype
.
cartridge
;
divcartridge
+=
"
</div>
"
;
return
Y
.
Node
.
create
(
divcartridge
);
var
divcartridgedisplay
=
Y
.
Node
.
create
(
divcartridge
);
if
(
draggable
&&
!
this
.
editor
.
get
(
'
readonly
'
))
{
divcartridgedisplay
.
on
(
'
mousedown
'
,
this
.
move_cartridge_begin
,
this
);
return
divcartridgedisplay
;
}
return
divcartridgedisplay
;
},
get_div_input
:
function
(
colorcartridge
)
{
var
divinput
=
"
<div
"
;
...
...
yui/src/editor/js/annotationframe.js
View file @
9ce719e9
...
...
@@ -198,11 +198,10 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
var
divdisplay
=
this
.
get_div_cartridge
(
colorcartridge
);
divdisplay
.
addClass
(
'
assignfeedback_editpdfplus_frame
'
);
divdisplay
.
setStyles
({
'
border-style
'
:
this
.
borderstyle
});
divdisplay
.
set
(
'
draggable
'
,
'
true
'
);
//
divdisplay.set('draggable', 'true');
// inscription entete
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
);
divcartridge
.
on
(
'
mousedown
'
,
this
.
move_cartridge_begin
,
this
);
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
,
true
);
divdisplay
.
append
(
divcartridge
);
//creation input
...
...
@@ -358,18 +357,18 @@ Y.extend(ANNOTATIONFRAME, M.assignfeedback_editpdfplus.annotation, {
this
.
editor
.
save_current_page
();
},
/*apply_visibility_annot: function () {
var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display");
var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value');
if (valref === '') {
if (this.editor.get('readonly')) {
divdisplay.setContent('');
} else {
divdisplay.setContent('  ');
}
} else if (valref !== '') {
divdisplay.setContent(valref);
}
},*/
var divdisplay = this.editor.get_dialogue_element('#' + this.divcartridge + "_display");
var valref = this.editor.get_dialogue_element('#' + this.divcartridge + "_valref").get('value');
if (valref === '') {
if (this.editor.get('readonly')) {
divdisplay.setContent('');
} else {
divdisplay.setContent('  ');
}
} else if (valref !== '') {
divdisplay.setContent(valref);
}
},*/
add_annot
:
function
(
e
)
{
this
.
editor
.
currentedit
.
parent_annot_element
=
this
;
this
.
editor
.
handle_tool_button
(
e
,
TOOLTYPELIB
.
FRAME
,
'
ctbutton
'
+
this
.
toolid
,
1
);
...
...
yui/src/editor/js/annotationverticalline.js
View file @
9ce719e9
...
...
@@ -160,8 +160,7 @@ Y.extend(ANNOTATIONVERTICALLINE, M.assignfeedback_editpdfplus.annotation, {
divdisplay
.
addClass
(
'
assignfeedback_editpdfplus_verticalline
'
);
// inscription entete
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
);
divcartridge
.
on
(
'
mousedown
'
,
this
.
move_cartridge_begin
,
this
);
var
divcartridge
=
this
.
get_div_cartridge_label
(
colorcartridge
,
true
);
divdisplay
.
append
(
divcartridge
);
//creation input
...
...
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