MDL-31929 minor fixup (the file is plenty, but avoid introducing new ones)

This commit is contained in:
Eloy Lafuente (stronk7) 2012-03-13 22:54:48 +01:00
parent 4c31dfd14a
commit 8ebbe295ab

View file

@ -1382,13 +1382,13 @@ M.core_filepicker.init = function(Y, options) {
var r = this.active_repo; var r = this.active_repo;
var str = ''; var str = '';
var action = ''; var action = '';
var lastpage = r.pages var lastpage = r.pages;
var lastpagetext = r.pages var lastpagetext = r.pages;
if (r.pages == -1) { if (r.pages == -1) {
lastpage = r.page + 1 lastpage = r.page + 1;
lastpagetext = M.str.moodle.next lastpagetext = M.str.moodle.next;
} }
if(lastpage > 1) { if (lastpage > 1) {
str += '<div class="fp-paging" id="paging-'+html_id+'-'+client_id+'">'; str += '<div class="fp-paging" id="paging-'+html_id+'-'+client_id+'">';
str += this.get_page_button(1)+'1</a> '; str += this.get_page_button(1)+'1</a> ';