Merge branch 'MDL-54772-30' of git://github.com/junpataleta/moodle into MOODLE_30_STABLE
This commit is contained in:
+4
-10
@@ -1553,7 +1553,7 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
*/
|
||||
draw : function() {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
node,
|
||||
position;
|
||||
|
||||
@@ -1569,16 +1569,10 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
'zIndex': 50
|
||||
});
|
||||
|
||||
drawingregion.append(node);
|
||||
drawingcanvas.append(node);
|
||||
node.setX(position.x);
|
||||
node.setY(position.y);
|
||||
drawable.store_position(node, position.x, position.y);
|
||||
|
||||
// Pass throught the event handlers on the div.
|
||||
node.on('gesturemovestart', this.editor.edit_start, null, this.editor);
|
||||
node.on('gesturemove', this.editor.edit_move, null, this.editor);
|
||||
node.on('gesturemoveend', this.editor.edit_end, null, this.editor);
|
||||
|
||||
drawable.nodes.push(node);
|
||||
|
||||
this.drawable = drawable;
|
||||
@@ -2507,7 +2501,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
this.draw = function(focus) {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
node,
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
container,
|
||||
menu,
|
||||
position,
|
||||
@@ -2537,7 +2531,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
color: COMMENTTEXTCOLOUR
|
||||
});
|
||||
|
||||
drawingregion.append(container);
|
||||
drawingcanvas.append(container);
|
||||
container.setStyle('position', 'absolute');
|
||||
container.setX(position.x);
|
||||
container.setY(position.y);
|
||||
|
||||
+6
-6
File diff suppressed because one or more lines are too long
+4
-10
@@ -1553,7 +1553,7 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
*/
|
||||
draw : function() {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
node,
|
||||
position;
|
||||
|
||||
@@ -1569,16 +1569,10 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
'zIndex': 50
|
||||
});
|
||||
|
||||
drawingregion.append(node);
|
||||
drawingcanvas.append(node);
|
||||
node.setX(position.x);
|
||||
node.setY(position.y);
|
||||
drawable.store_position(node, position.x, position.y);
|
||||
|
||||
// Pass throught the event handlers on the div.
|
||||
node.on('gesturemovestart', this.editor.edit_start, null, this.editor);
|
||||
node.on('gesturemove', this.editor.edit_move, null, this.editor);
|
||||
node.on('gesturemoveend', this.editor.edit_end, null, this.editor);
|
||||
|
||||
drawable.nodes.push(node);
|
||||
|
||||
this.drawable = drawable;
|
||||
@@ -2507,7 +2501,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
this.draw = function(focus) {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
node,
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
container,
|
||||
menu,
|
||||
position,
|
||||
@@ -2537,7 +2531,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
color: COMMENTTEXTCOLOUR
|
||||
});
|
||||
|
||||
drawingregion.append(container);
|
||||
drawingcanvas.append(container);
|
||||
container.setStyle('position', 'absolute');
|
||||
container.setX(position.x);
|
||||
container.setY(position.y);
|
||||
|
||||
@@ -42,7 +42,7 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
*/
|
||||
draw : function() {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
node,
|
||||
position;
|
||||
|
||||
@@ -58,16 +58,10 @@ Y.extend(ANNOTATIONSTAMP, M.assignfeedback_editpdf.annotation, {
|
||||
'zIndex': 50
|
||||
});
|
||||
|
||||
drawingregion.append(node);
|
||||
drawingcanvas.append(node);
|
||||
node.setX(position.x);
|
||||
node.setY(position.y);
|
||||
drawable.store_position(node, position.x, position.y);
|
||||
|
||||
// Pass throught the event handlers on the div.
|
||||
node.on('gesturemovestart', this.editor.edit_start, null, this.editor);
|
||||
node.on('gesturemove', this.editor.edit_move, null, this.editor);
|
||||
node.on('gesturemoveend', this.editor.edit_end, null, this.editor);
|
||||
|
||||
drawable.nodes.push(node);
|
||||
|
||||
this.drawable = drawable;
|
||||
|
||||
@@ -159,7 +159,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
this.draw = function(focus) {
|
||||
var drawable = new M.assignfeedback_editpdf.drawable(this.editor),
|
||||
node,
|
||||
drawingregion = this.editor.get_dialogue_element(SELECTOR.DRAWINGREGION),
|
||||
drawingcanvas = this.editor.get_dialogue_element(SELECTOR.DRAWINGCANVAS),
|
||||
container,
|
||||
menu,
|
||||
position,
|
||||
@@ -189,7 +189,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||
color: COMMENTTEXTCOLOUR
|
||||
});
|
||||
|
||||
drawingregion.append(container);
|
||||
drawingcanvas.append(container);
|
||||
container.setStyle('position', 'absolute');
|
||||
container.setX(position.x);
|
||||
container.setY(position.y);
|
||||
|
||||
Reference in New Issue
Block a user