mirror of https://gitee.com/bigwinds/arangodb
bugfix filter
This commit is contained in:
parent
52e791cbd7
commit
d4b3982ba4
|
@ -25,7 +25,7 @@ arangoHelper = {
|
|||
|
||||
isSystemCollection: function (val) {
|
||||
//return val && val.name && val.name.substr(0, 1) === '_';
|
||||
return name.substr(0, 1) === '_';
|
||||
return val.substr(0, 1) === '_';
|
||||
},
|
||||
|
||||
collectionApiType: function (identifier) {
|
||||
|
|
|
@ -4,7 +4,7 @@ var collectionsView = Backbone.View.extend({
|
|||
|
||||
searchOptions: {
|
||||
searchPhrase: null,
|
||||
excludeSystem: false
|
||||
excludeSystem: true
|
||||
},
|
||||
|
||||
init: function () {
|
||||
|
@ -20,6 +20,8 @@ var collectionsView = Backbone.View.extend({
|
|||
searchPhrase = this.searchOptions.searchPhrase.toLowerCase();
|
||||
}
|
||||
this.collection.each(function (arango_collection) {
|
||||
if (arango_collection.get('name').substr(0,1) === "_") {
|
||||
}
|
||||
if (searchPhrase !== '' && arango_collection.get('name').toLowerCase().indexOf(searchPhrase) === -1) {
|
||||
// search phrase entered but current collection does not match?
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue