mirror of https://gitee.com/bigwinds/arangodb
redirect bugfix, optimizations
This commit is contained in:
parent
ef86071517
commit
e128c0aca4
|
@ -26,7 +26,7 @@
|
|||
return this;
|
||||
},
|
||||
events: {
|
||||
"click #save-modified-collection" : "saveModifiedCollection",
|
||||
"click #save-modified-collection" : "saveModifiedCollection(true)",
|
||||
"hidden #change-collection" : "hidden",
|
||||
"click #delete-modified-collection" : "deleteCollection",
|
||||
"click #load-modified-collection" : "loadCollection",
|
||||
|
@ -38,7 +38,7 @@
|
|||
},
|
||||
listenKey: function(e) {
|
||||
if (e.keyCode === 13) {
|
||||
this.saveModifiedCollection();
|
||||
this.saveModifiedCollection(true);
|
||||
}
|
||||
},
|
||||
hidden: function () {
|
||||
|
@ -99,7 +99,12 @@
|
|||
$('#change-collection-size').val(calculatedSize);
|
||||
$('#change-collection').modal('show');
|
||||
},
|
||||
saveModifiedCollection: function() {
|
||||
saveModifiedCollection: function(run) {
|
||||
|
||||
if (run !== true) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
var newname = $('#change-collection-name').val();
|
||||
if (newname === '') {
|
||||
arangoHelper.arangoError('No collection name entered!');
|
||||
|
|
|
@ -314,19 +314,14 @@
|
|||
this.makeEditable();
|
||||
|
||||
$(document).bind('keydown', function(e) {
|
||||
if (e.ctrlKey && e.keyCode === 65) {
|
||||
if (e.ctrlKey && e.keyCode === 65 || e.ctrlKey && e.keyCode === 78) {
|
||||
if ($('#addNewRowEntry')) {
|
||||
$('#addNewRowEntry').click();
|
||||
self.jumpToPageBottom();
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
checkFieldValue: function () {
|
||||
|
||||
},
|
||||
|
||||
jumpToPageBottom: function () {
|
||||
$('html, body').scrollTop($(document).height() - $(window).height());
|
||||
},
|
||||
|
@ -361,6 +356,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
self.jumpToPageBottom();
|
||||
arangoHelper.fixTooltips(".icon_arangodb", "left");
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue