提交 860dec7e 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/Homepage_paging' into 'develop'

修复分页bug(bug描述:如果没有待办的话,其它4个---已办、已阅、待阅、拟稿都没有分页)

See merge request o2oa/o2oa!483
......@@ -554,7 +554,14 @@ MWF.xApplication.Homepage.TaskContent.TaskCompleted = new Class({
return row;
},
checkLoadPage: function(){
if (this.content.itemCounts && this.content.itemCounts.taskCompleted){
this.getPageCount();
this.loadPage();
}else{
this.addLoadPageEvent();
}
},
addLoadPageEvent: function(){
var loadPage = function(){
this.getPageCount();
......@@ -627,7 +634,14 @@ MWF.xApplication.Homepage.TaskContent.Read = new Class({
return row;
},
checkLoadPage: function(){
if (this.content.itemCounts && this.content.itemCounts.read){
this.getPageCount();
this.loadPage();
}else{
this.addLoadPageEvent();
}
},
addLoadPageEvent: function(){
var loadPage = function(){
this.getPageCount();
......@@ -702,6 +716,14 @@ MWF.xApplication.Homepage.TaskContent.ReadCompleted = new Class({
return row;
},
checkLoadPage: function(){
if (this.content.itemCounts && this.content.itemCounts.readCompleted){
this.getPageCount();
this.loadPage();
}else{
this.addLoadPageEvent();
}
},
addLoadPageEvent: function(){
var loadPage = function(){
this.getPageCount();
......@@ -784,7 +806,14 @@ MWF.xApplication.Homepage.TaskContent.Draft = new Class({
return row;
},
checkLoadPage: function(){
if (this.content.itemCounts && this.content.itemCounts.draft){
this.getPageCount();
this.loadPage();
}else{
this.addLoadPageEvent();
}
},
addLoadPageEvent: function(){
var loadPage = function(){
this.getPageCount();
......@@ -857,7 +886,14 @@ MWF.xApplication.Homepage.TaskContent.ProcessDraft = new Class({
return row;
},
checkLoadPage: function(){
if (this.content.itemCounts && this.content.itemCounts.processDraft){
this.getPageCount();
this.loadPage();
}else{
this.addLoadPageEvent();
}
},
addLoadPageEvent: function(){
var loadPage = function(){
this.getPageCount();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册