mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-53822 editpdf: Show different cursors for select and move
This commit is contained in:
parent
55907a738a
commit
ab4d78ea82
@ -18,6 +18,12 @@
|
||||
.assignfeedback_editpdf_widget .moodle-dialogue-bd .drawingregion {
|
||||
position: inherit;
|
||||
}
|
||||
.assignfeedback_editpdf_widget .drawingregion[data-currenttool=drag] .drawingcanvas {
|
||||
cursor: move;
|
||||
}
|
||||
.assignfeedback_editpdf_widget .drawingregion[data-currenttool=select] .drawingcanvas {
|
||||
cursor: pointer;
|
||||
}
|
||||
.assignfeedback_editpdf_widget .drawingregion {
|
||||
border: 1px solid #ccc;
|
||||
left: 1em;
|
||||
|
@ -3295,7 +3295,7 @@ EDITOR.prototype = {
|
||||
* @method refresh_button_state
|
||||
*/
|
||||
refresh_button_state : function() {
|
||||
var button, currenttoolnode, imgurl;
|
||||
var button, currenttoolnode, imgurl, drawingregion;
|
||||
|
||||
// Initalise the colour buttons.
|
||||
button = this.get_dialogue_element(SELECTOR.COMMENTCOLOURBUTTON);
|
||||
@ -3316,6 +3316,8 @@ EDITOR.prototype = {
|
||||
currenttoolnode = this.get_dialogue_element(TOOLSELECTOR[this.currentedit.tool]);
|
||||
currenttoolnode.addClass('assignfeedback_editpdf_selectedbutton');
|
||||
currenttoolnode.setAttribute('aria-pressed', 'true');
|
||||
drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
drawingregion.setAttribute('data-currenttool', this.currentedit.tool);
|
||||
|
||||
button = this.get_dialogue_element(SELECTOR.STAMPSBUTTON);
|
||||
button.one('img').setAttrs({'src': this.get_stamp_image_url(this.currentedit.stamp),
|
||||
@ -3729,6 +3731,7 @@ EDITOR.prototype = {
|
||||
currenttoolnode.removeClass('assignfeedback_editpdf_selectedbutton');
|
||||
currenttoolnode.setAttribute('aria-pressed', 'false');
|
||||
this.currentedit.tool = tool;
|
||||
|
||||
if (tool !== "comment" && tool !== "select" && tool !== "drag" && tool !== "stamp") {
|
||||
this.lastannotationtool = tool;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -3295,7 +3295,7 @@ EDITOR.prototype = {
|
||||
* @method refresh_button_state
|
||||
*/
|
||||
refresh_button_state : function() {
|
||||
var button, currenttoolnode, imgurl;
|
||||
var button, currenttoolnode, imgurl, drawingregion;
|
||||
|
||||
// Initalise the colour buttons.
|
||||
button = this.get_dialogue_element(SELECTOR.COMMENTCOLOURBUTTON);
|
||||
@ -3316,6 +3316,8 @@ EDITOR.prototype = {
|
||||
currenttoolnode = this.get_dialogue_element(TOOLSELECTOR[this.currentedit.tool]);
|
||||
currenttoolnode.addClass('assignfeedback_editpdf_selectedbutton');
|
||||
currenttoolnode.setAttribute('aria-pressed', 'true');
|
||||
drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
drawingregion.setAttribute('data-currenttool', this.currentedit.tool);
|
||||
|
||||
button = this.get_dialogue_element(SELECTOR.STAMPSBUTTON);
|
||||
button.one('img').setAttrs({'src': this.get_stamp_image_url(this.currentedit.stamp),
|
||||
@ -3729,6 +3731,7 @@ EDITOR.prototype = {
|
||||
currenttoolnode.removeClass('assignfeedback_editpdf_selectedbutton');
|
||||
currenttoolnode.setAttribute('aria-pressed', 'false');
|
||||
this.currentedit.tool = tool;
|
||||
|
||||
if (tool !== "comment" && tool !== "select" && tool !== "drag" && tool !== "stamp") {
|
||||
this.lastannotationtool = tool;
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ EDITOR.prototype = {
|
||||
* @method refresh_button_state
|
||||
*/
|
||||
refresh_button_state : function() {
|
||||
var button, currenttoolnode, imgurl;
|
||||
var button, currenttoolnode, imgurl, drawingregion;
|
||||
|
||||
// Initalise the colour buttons.
|
||||
button = this.get_dialogue_element(SELECTOR.COMMENTCOLOURBUTTON);
|
||||
@ -259,6 +259,8 @@ EDITOR.prototype = {
|
||||
currenttoolnode = this.get_dialogue_element(TOOLSELECTOR[this.currentedit.tool]);
|
||||
currenttoolnode.addClass('assignfeedback_editpdf_selectedbutton');
|
||||
currenttoolnode.setAttribute('aria-pressed', 'true');
|
||||
drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
drawingregion.setAttribute('data-currenttool', this.currentedit.tool);
|
||||
|
||||
button = this.get_dialogue_element(SELECTOR.STAMPSBUTTON);
|
||||
button.one('img').setAttrs({'src': this.get_stamp_image_url(this.currentedit.stamp),
|
||||
@ -672,6 +674,7 @@ EDITOR.prototype = {
|
||||
currenttoolnode.removeClass('assignfeedback_editpdf_selectedbutton');
|
||||
currenttoolnode.setAttribute('aria-pressed', 'false');
|
||||
this.currentedit.tool = tool;
|
||||
|
||||
if (tool !== "comment" && tool !== "select" && tool !== "drag" && tool !== "stamp") {
|
||||
this.lastannotationtool = tool;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user