diff --git a/apps/documenteditor/forms/app/controller/ApplicationController.js b/apps/documenteditor/forms/app/controller/ApplicationController.js index 24a2f4903..2f86dcea2 100644 --- a/apps/documenteditor/forms/app/controller/ApplicationController.js +++ b/apps/documenteditor/forms/app/controller/ApplicationController.js @@ -364,9 +364,10 @@ define([ }, onCountPages: function(count) { - maxPages = count; - if (maxPages !== count) + if (maxPages !== count) { + maxPages = count; $('#pages').text(this.textOf + " " + count); + } }, onCurrentPage: function(number) {