mirror of https://gitee.com/bigwinds/arangodb
jslint
This commit is contained in:
parent
3c0249a580
commit
4ea60b80f0
|
@ -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);
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue