diff --git a/js/apps/system/aardvark/frontend/js/collections/arangoDocument.js b/js/apps/system/aardvark/frontend/js/collections/arangoDocument.js index 95ac58ba13..8f49bb9821 100644 --- a/js/apps/system/aardvark/frontend/js/collections/arangoDocument.js +++ b/js/apps/system/aardvark/frontend/js/collections/arangoDocument.js @@ -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); }, diff --git a/js/apps/system/aardvark/frontend/js/views/documentsView.js b/js/apps/system/aardvark/frontend/js/views/documentsView.js index a586e9a850..a461ccf07f 100644 --- a/js/apps/system/aardvark/frontend/js/views/documentsView.js +++ b/js/apps/system/aardvark/frontend/js/views/documentsView.js @@ -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;