1
0
Fork 0
This commit is contained in:
Heiko Kernbach 2014-12-23 11:03:58 +01:00
parent 3c0249a580
commit 4ea60b80f0
2 changed files with 3 additions and 7 deletions

View File

@ -51,7 +51,6 @@ window.arangoDocument = Backbone.Collection.extend({
return returnval;
},
addDocument: function (collectionID, key) {
console.log("adding document");
var self = this;
self.createTypeDocument(collectionID, key);
},

View File

@ -490,12 +490,11 @@
addDocumentModal: function () {
var collid = window.location.hash.split("/")[1],
buttons = [], tableContent = [],
// second parameter is "true" to disable caching of collection type
doctype = arangoHelper.collectionApiType(collid, true);
if (doctype === 'edge') {
var buttons = [], tableContent = [];
tableContent.push(
window.modalView.createTextEntry(
'new-edge-from-attr',
@ -558,8 +557,6 @@
return;
}
else {
var buttons = [], tableContent = [];
tableContent.push(
window.modalView.createTextEntry(
'new-document-key-attr',
@ -633,8 +630,8 @@
},
moveSelectedDocs: function() {
var buttons = [], tableContent = [];
var toDelete = this.getSelectedDocs();
var buttons = [], tableContent = [],
toDelete = this.getSelectedDocs();
if (toDelete.length === 0) {
return;