Updates for displaying pagination total number.

This commit is contained in:
kunw 2016-10-28 11:44:43 +08:00
parent 7ffd40ea57
commit 61657600b3
5 changed files with 5 additions and 3 deletions

View File

@ -12,3 +12,4 @@
</li> </li>
</ul> </ul>
</nav> </nav>
<p class="pull-right" style="margin-right: 15%; margin-top: 5px;">// 'total' | tr // // vm.totalCount // // 'items' | tr //</p>

View File

@ -106,11 +106,10 @@
if(this.time > this.minimum) { if(this.time > this.minimum) {
if(this.time === 0) { if(this.time === 0) {
ctrl.page = ctrl.displayCount; ctrl.page = ctrl.displayCount;
}else if((ctrl.page % ctrl.displayCount) != 0) { }else{
ctrl.page = this.time * ctrl.displayCount; ctrl.page = this.time * ctrl.displayCount;
} }
--this.time; --this.time;
--ctrl.page;
} }
scope.$apply(); scope.$apply();
}; };

View File

@ -55,7 +55,7 @@
</div> </div>
</div> </div>
<div class="col-xs-4 col-md-12 well well-sm well-custom"> <div class="col-xs-4 col-md-12 well well-sm well-custom">
<div class="col-md-offset-10">//vm.users ? vm.users.length : 0// items</div> <div class="col-md-offset-10">//vm.users ? vm.users.length : 0// // 'items' | tr //</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -96,6 +96,7 @@ var locale_messages = {
'save': 'Save', 'save': 'Save',
'cancel': 'Cancel', 'cancel': 'Cancel',
'confirm': 'Confirm', 'confirm': 'Confirm',
'total': 'Total',
'items': 'item(s)', 'items': 'item(s)',
'add_member': 'Add Member', 'add_member': 'Add Member',
'operation': 'Operation', 'operation': 'Operation',

View File

@ -96,6 +96,7 @@ var locale_messages = {
'save': '保存', 'save': '保存',
'cancel': '取消', 'cancel': '取消',
'confirm': '确认', 'confirm': '确认',
'total': '总计',
'items': '条记录', 'items': '条记录',
'add_member': '新增成员', 'add_member': '新增成员',
'operation': '操作', 'operation': '操作',