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() {
|
render: function() {
|
||||||
$(this.el).html(this.template.render({}));
|
$(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.tableView.setElement($(this.table)).drawLoading();
|
||||||
|
|
||||||
this.collectionContext = this.collectionsStore.getPosition(
|
this.collectionContext = this.collectionsStore.getPosition(
|
||||||
|
@ -942,6 +950,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
renderPaginationElements: function () {
|
renderPaginationElements: function () {
|
||||||
|
console.log("hello");
|
||||||
this.renderPagination();
|
this.renderPagination();
|
||||||
var total = $('#totalDocuments');
|
var total = $('#totalDocuments');
|
||||||
if (total.length === 0) {
|
if (total.length === 0) {
|
||||||
|
@ -951,6 +960,7 @@
|
||||||
total = $('#totalDocuments');
|
total = $('#totalDocuments');
|
||||||
}
|
}
|
||||||
if (this.type === 'document') {
|
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)");
|
total.html(numeral(this.collection.getTotal()).format('0,0') + " document(s)");
|
||||||
}
|
}
|
||||||
if (this.type === 'edge') {
|
if (this.type === 'edge') {
|
||||||
|
|
Loading…
Reference in New Issue