mirror of https://gitee.com/bigwinds/arangodb
fixed jslint warnings
This commit is contained in:
parent
84b0973437
commit
de7dec3a6d
|
@ -280,7 +280,8 @@ var documentsView = Backbone.View.extend({
|
||||||
|
|
||||||
var num = ++this.filterId;
|
var num = ++this.filterId;
|
||||||
$('#filterHeader').append(' <div class="queryline querylineAdd">'+
|
$('#filterHeader').append(' <div class="queryline querylineAdd">'+
|
||||||
'<input id="attribute_name' + num +'" type="text" placeholder="Attribute name">'+
|
'<input id="attribute_name' + num +
|
||||||
|
'" type="text" placeholder="Attribute name">'+
|
||||||
'<select name="operator" id="operator' + num + '">'+
|
'<select name="operator" id="operator' + num + '">'+
|
||||||
' <option value="==">==</option>'+
|
' <option value="==">==</option>'+
|
||||||
' <option value="!=">!=</option>'+
|
' <option value="!=">!=</option>'+
|
||||||
|
@ -289,7 +290,8 @@ var documentsView = Backbone.View.extend({
|
||||||
' <option value=">=">>=</option>'+
|
' <option value=">=">>=</option>'+
|
||||||
' <option value=">">></option>'+
|
' <option value=">">></option>'+
|
||||||
'</select>'+
|
'</select>'+
|
||||||
'<input id="attribute_value' + num + '" type="text" placeholder="Attribute value" ' +
|
'<input id="attribute_value' + num +
|
||||||
|
'" type="text" placeholder="Attribute value" ' +
|
||||||
'class="filterValue">'+
|
'class="filterValue">'+
|
||||||
' <a class="removeFilterItem" id="removeFilter' + num + '">' +
|
' <a class="removeFilterItem" id="removeFilter' + num + '">' +
|
||||||
'<i class="icon icon-minus icon-white"></i></a>'+
|
'<i class="icon icon-minus icon-white"></i></a>'+
|
||||||
|
@ -751,7 +753,6 @@ var documentsView = Backbone.View.extend({
|
||||||
self.resetIndexForms();
|
self.resetIndexForms();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log(result);
|
|
||||||
if (result.responseText) {
|
if (result.responseText) {
|
||||||
var message = JSON.parse(result.responseText);
|
var message = JSON.parse(result.responseText);
|
||||||
arangoHelper.arangoNotification(message.errorMessage);
|
arangoHelper.arangoNotification(message.errorMessage);
|
||||||
|
@ -764,7 +765,13 @@ var documentsView = Backbone.View.extend({
|
||||||
|
|
||||||
prepDeleteIndex: function (e) {
|
prepDeleteIndex: function (e) {
|
||||||
this.lastTarget = e;
|
this.lastTarget = e;
|
||||||
this.lastId = $(this.lastTarget.currentTarget).parent().parent().first().children().first().text();
|
this.lastId = $(this.lastTarget.currentTarget).
|
||||||
|
parent().
|
||||||
|
parent().
|
||||||
|
first().
|
||||||
|
children().
|
||||||
|
first().
|
||||||
|
text();
|
||||||
$("#indexDeleteModal").modal('show');
|
$("#indexDeleteModal").modal('show');
|
||||||
},
|
},
|
||||||
deleteIndex: function () {
|
deleteIndex: function () {
|
||||||
|
|
Loading…
Reference in New Issue