mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
This commit is contained in:
commit
a33261fac5
|
@ -91,7 +91,6 @@
|
||||||
var userName = $('#newUser').val();
|
var userName = $('#newUser').val();
|
||||||
var userPassword = $('#newPassword').val();
|
var userPassword = $('#newPassword').val();
|
||||||
if (!this.validateDatabaseInfo(name, userName, userPassword)) {
|
if (!this.validateDatabaseInfo(name, userName, userPassword)) {
|
||||||
console.log("VALIDATE");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var options = {
|
var options = {
|
||||||
|
|
|
@ -498,24 +498,11 @@
|
||||||
drawTable: function() {
|
drawTable: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
/*
|
if (window.arangoDocumentsStore.models.length === 0) {
|
||||||
if (this.addDocumentSwitch === true) {
|
|
||||||
$(self.table).dataTable().fnAddData(
|
|
||||||
[
|
|
||||||
'<a id="plusIconDoc" style="padding-left: 30px">Add document</a>',
|
|
||||||
'',
|
|
||||||
'<img src="img/plus_icon.png" id="documentAddBtn"></img>'
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
if (window.arangoDocumentsStore.models.length === 0) {
|
|
||||||
$('.dataTables_empty').text('No documents');
|
$('.dataTables_empty').text('No documents');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
$.each(window.arangoDocumentsStore.models, function(key, value) {
|
$.each(window.arangoDocumentsStore.models, function(key, value) {
|
||||||
|
|
||||||
var tempObj = {};
|
var tempObj = {};
|
||||||
$.each(value.attributes.content, function(k, v) {
|
$.each(value.attributes.content, function(k, v) {
|
||||||
if (! (k === '_id' || k === '_rev' || k === '_key')) {
|
if (! (k === '_id' || k === '_rev' || k === '_key')) {
|
||||||
|
@ -679,7 +666,7 @@
|
||||||
});
|
});
|
||||||
return fields;
|
return fields;
|
||||||
},
|
},
|
||||||
createIndex: function (e) {
|
createIndex: function () {
|
||||||
//e.preventDefault();
|
//e.preventDefault();
|
||||||
var self = this;
|
var self = this;
|
||||||
var collection = this.collectionName;
|
var collection = this.collectionName;
|
||||||
|
|
|
@ -287,7 +287,7 @@
|
||||||
expect(opt.processData).toEqual(false);
|
expect(opt.processData).toEqual(false);
|
||||||
expect(opt.data).toEqual(JSON.stringify(
|
expect(opt.data).toEqual(JSON.stringify(
|
||||||
{
|
{
|
||||||
name: "heinz", waitForSync: true, isSystem: true,
|
name: "heinz", waitForSync: true, journalSize :2, isSystem: true,
|
||||||
type: 3, numberOfShards: 3, shardKeys: ["a", "b", "c"]
|
type: 3, numberOfShards: 3, shardKeys: ["a", "b", "c"]
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
@ -310,7 +310,7 @@
|
||||||
expect(opt.processData).toEqual(false);
|
expect(opt.processData).toEqual(false);
|
||||||
expect(opt.data).toEqual(JSON.stringify(
|
expect(opt.data).toEqual(JSON.stringify(
|
||||||
{
|
{
|
||||||
name: "heinz", waitForSync: true, isSystem: true,
|
name: "heinz", waitForSync: true, journalSize: 2, isSystem: true,
|
||||||
type: 3, numberOfShards: 3, shardKeys: ["a", "b", "c"]
|
type: 3, numberOfShards: 3, shardKeys: ["a", "b", "c"]
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue