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;
|
return returnval;
|
||||||
},
|
},
|
||||||
addDocument: function (collectionID, key) {
|
addDocument: function (collectionID, key) {
|
||||||
console.log("adding document");
|
|
||||||
var self = this;
|
var self = this;
|
||||||
self.createTypeDocument(collectionID, key);
|
self.createTypeDocument(collectionID, key);
|
||||||
},
|
},
|
||||||
|
|
|
@ -490,12 +490,11 @@
|
||||||
|
|
||||||
addDocumentModal: function () {
|
addDocumentModal: function () {
|
||||||
var collid = window.location.hash.split("/")[1],
|
var collid = window.location.hash.split("/")[1],
|
||||||
|
buttons = [], tableContent = [],
|
||||||
// second parameter is "true" to disable caching of collection type
|
// second parameter is "true" to disable caching of collection type
|
||||||
doctype = arangoHelper.collectionApiType(collid, true);
|
doctype = arangoHelper.collectionApiType(collid, true);
|
||||||
if (doctype === 'edge') {
|
if (doctype === 'edge') {
|
||||||
|
|
||||||
var buttons = [], tableContent = [];
|
|
||||||
|
|
||||||
tableContent.push(
|
tableContent.push(
|
||||||
window.modalView.createTextEntry(
|
window.modalView.createTextEntry(
|
||||||
'new-edge-from-attr',
|
'new-edge-from-attr',
|
||||||
|
@ -558,8 +557,6 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var buttons = [], tableContent = [];
|
|
||||||
|
|
||||||
tableContent.push(
|
tableContent.push(
|
||||||
window.modalView.createTextEntry(
|
window.modalView.createTextEntry(
|
||||||
'new-document-key-attr',
|
'new-document-key-attr',
|
||||||
|
@ -633,8 +630,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
moveSelectedDocs: function() {
|
moveSelectedDocs: function() {
|
||||||
var buttons = [], tableContent = [];
|
var buttons = [], tableContent = [],
|
||||||
var toDelete = this.getSelectedDocs();
|
toDelete = this.getSelectedDocs();
|
||||||
|
|
||||||
if (toDelete.length === 0) {
|
if (toDelete.length === 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue