MDL-56324 assignfeedback_editpdf: Use correct page in save_current_page

This commit is contained in:
Tony Butler
2016-10-12 14:17:48 +01:00
parent 3cd718e859
commit 88d309d947
4 changed files with 11 additions and 2 deletions
@@ -4078,8 +4078,11 @@ EDITOR.prototype = {
*/
save_current_page: function() {
var ajaxurl = AJAXBASE,
pageselect = this.get_dialogue_element(SELECTOR.PAGESELECT),
config;
this.currentpage = parseInt(pageselect.get('value'), 10);
config = {
method: 'post',
context: this,
File diff suppressed because one or more lines are too long
@@ -4078,8 +4078,11 @@ EDITOR.prototype = {
*/
save_current_page: function() {
var ajaxurl = AJAXBASE,
pageselect = this.get_dialogue_element(SELECTOR.PAGESELECT),
config;
this.currentpage = parseInt(pageselect.get('value'), 10);
config = {
method: 'post',
context: this,
@@ -987,8 +987,11 @@ EDITOR.prototype = {
*/
save_current_page: function() {
var ajaxurl = AJAXBASE,
pageselect = this.get_dialogue_element(SELECTOR.PAGESELECT),
config;
this.currentpage = parseInt(pageselect.get('value'), 10);
config = {
method: 'post',
context: this,