mirror of https://gitee.com/bigwinds/arangodb
frontend bugfix wrong collection type
This commit is contained in:
parent
06e40476f7
commit
51678757cb
|
@ -899,6 +899,14 @@
|
|||
|
||||
render: function() {
|
||||
$(this.el).html(this.template.render({}));
|
||||
|
||||
if (this.type === 2) {
|
||||
this.type = "document";
|
||||
}
|
||||
else if (this.type === 3) {
|
||||
this.type = "edge";
|
||||
}
|
||||
|
||||
this.tableView.setElement($(this.table)).drawLoading();
|
||||
|
||||
this.collectionContext = this.collectionsStore.getPosition(
|
||||
|
@ -942,6 +950,7 @@
|
|||
},
|
||||
|
||||
renderPaginationElements: function () {
|
||||
console.log("hello");
|
||||
this.renderPagination();
|
||||
var total = $('#totalDocuments');
|
||||
if (total.length === 0) {
|
||||
|
@ -951,6 +960,7 @@
|
|||
total = $('#totalDocuments');
|
||||
}
|
||||
if (this.type === 'document') {
|
||||
console.log(numeral(this.collection.getTotal()).format('0,0') + " document(s)");
|
||||
total.html(numeral(this.collection.getTotal()).format('0,0') + " document(s)");
|
||||
}
|
||||
if (this.type === 'edge') {
|
||||
|
|
Loading…
Reference in New Issue