mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
parent
780904245b
commit
d85ddb4f4c
2 changed files with 7 additions and 3 deletions
|
@ -129,6 +129,7 @@ define([
|
|||
}
|
||||
$.ajax(loadFrom).done(function (data) {
|
||||
resetToValues(defaultHost, data);
|
||||
input.moveToNextRequestEdge(true);
|
||||
input.highlightCurrentRequestAndUpdateActionBar();
|
||||
input.updateActionsBar();
|
||||
});
|
||||
|
@ -139,7 +140,7 @@ define([
|
|||
else {
|
||||
resetToValues(defaultHost);
|
||||
}
|
||||
|
||||
input.moveToNextRequestEdge(true);
|
||||
}());
|
||||
|
||||
(function setupAutosave() {
|
||||
|
|
|
@ -252,10 +252,13 @@ define([
|
|||
editor.moveCursorTo(pos.row, 0);
|
||||
});
|
||||
|
||||
editor.moveToNextRequestEdge = onceDoneTokenizing(function () {
|
||||
editor.moveToNextRequestEdge = onceDoneTokenizing(function (moveOnlyIfNotOnEdge) {
|
||||
var pos = editor.getCursorPosition();
|
||||
var maxRow = editor.getSession().getLength();
|
||||
for (pos.row++; pos.row < maxRow && !editor.parser.isRequestEdge(pos.row); pos.row++) {
|
||||
if (!moveOnlyIfNotOnEdge) {
|
||||
pos.row++;
|
||||
}
|
||||
for (; pos.row < maxRow && !editor.parser.isRequestEdge(pos.row); pos.row++) {
|
||||
}
|
||||
editor.moveCursorTo(pos.row, 0);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue