Merge branch 'MDL-52290_editpdf_pagecount' of git://github.com/davosmith/moodle
This commit is contained in:
@@ -54,7 +54,9 @@ Feature: In an assignment, teacher can annotate PDF files during grading
|
||||
And I click on "Grade" "link" in the "Submitted for grading" "table_row"
|
||||
And I follow "Launch PDF editor..."
|
||||
And I change window size to "large"
|
||||
And I should see "Page 1 of 3"
|
||||
And I click on ".navigate-next-button" "css_element"
|
||||
And I should see "Page 2 of 3"
|
||||
And I click on ".stampbutton" "css_element"
|
||||
And I click on ".linebutton" "css_element"
|
||||
And I click on ".commentcolourbutton" "css_element"
|
||||
|
||||
+3
-1
@@ -4090,6 +4090,7 @@ EDITOR.prototype = {
|
||||
setup_navigation : function() {
|
||||
var pageselect,
|
||||
i,
|
||||
strinfo,
|
||||
option,
|
||||
previousbutton,
|
||||
nextbutton;
|
||||
@@ -4101,7 +4102,8 @@ EDITOR.prototype = {
|
||||
for (i = 0; i < this.pages.length; i++) {
|
||||
option = Y.Node.create('<option/>');
|
||||
option.setAttribute('value', i);
|
||||
option.setHTML(M.util.get_string('pagenumber', 'assignfeedback_editpdf', i+1));
|
||||
strinfo = {page: i+1, total: this.pages.length};
|
||||
option.setHTML(M.util.get_string('pagexofy', 'assignfeedback_editpdf', strinfo));
|
||||
pageselect.append(option);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+3
-1
@@ -4090,6 +4090,7 @@ EDITOR.prototype = {
|
||||
setup_navigation : function() {
|
||||
var pageselect,
|
||||
i,
|
||||
strinfo,
|
||||
option,
|
||||
previousbutton,
|
||||
nextbutton;
|
||||
@@ -4101,7 +4102,8 @@ EDITOR.prototype = {
|
||||
for (i = 0; i < this.pages.length; i++) {
|
||||
option = Y.Node.create('<option/>');
|
||||
option.setAttribute('value', i);
|
||||
option.setHTML(M.util.get_string('pagenumber', 'assignfeedback_editpdf', i+1));
|
||||
strinfo = {page: i+1, total: this.pages.length};
|
||||
option.setHTML(M.util.get_string('pagexofy', 'assignfeedback_editpdf', strinfo));
|
||||
pageselect.append(option);
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -1035,6 +1035,7 @@ EDITOR.prototype = {
|
||||
setup_navigation : function() {
|
||||
var pageselect,
|
||||
i,
|
||||
strinfo,
|
||||
option,
|
||||
previousbutton,
|
||||
nextbutton;
|
||||
@@ -1046,7 +1047,8 @@ EDITOR.prototype = {
|
||||
for (i = 0; i < this.pages.length; i++) {
|
||||
option = Y.Node.create('<option/>');
|
||||
option.setAttribute('value', i);
|
||||
option.setHTML(M.util.get_string('pagenumber', 'assignfeedback_editpdf', i+1));
|
||||
strinfo = {page: i+1, total: this.pages.length};
|
||||
option.setHTML(M.util.get_string('pagexofy', 'assignfeedback_editpdf', strinfo));
|
||||
pageselect.append(option);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user