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) {
|
isSystemCollection: function (val) {
|
||||||
//return val && val.name && val.name.substr(0, 1) === '_';
|
//return val && val.name && val.name.substr(0, 1) === '_';
|
||||||
return name.substr(0, 1) === '_';
|
return val.substr(0, 1) === '_';
|
||||||
},
|
},
|
||||||
|
|
||||||
collectionApiType: function (identifier) {
|
collectionApiType: function (identifier) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ var collectionsView = Backbone.View.extend({
|
||||||
|
|
||||||
searchOptions: {
|
searchOptions: {
|
||||||
searchPhrase: null,
|
searchPhrase: null,
|
||||||
excludeSystem: false
|
excludeSystem: true
|
||||||
},
|
},
|
||||||
|
|
||||||
init: function () {
|
init: function () {
|
||||||
|
@ -20,6 +20,8 @@ var collectionsView = Backbone.View.extend({
|
||||||
searchPhrase = this.searchOptions.searchPhrase.toLowerCase();
|
searchPhrase = this.searchOptions.searchPhrase.toLowerCase();
|
||||||
}
|
}
|
||||||
this.collection.each(function (arango_collection) {
|
this.collection.each(function (arango_collection) {
|
||||||
|
if (arango_collection.get('name').substr(0,1) === "_") {
|
||||||
|
}
|
||||||
if (searchPhrase !== '' && arango_collection.get('name').toLowerCase().indexOf(searchPhrase) === -1) {
|
if (searchPhrase !== '' && arango_collection.get('name').toLowerCase().indexOf(searchPhrase) === -1) {
|
||||||
// search phrase entered but current collection does not match?
|
// search phrase entered but current collection does not match?
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue