mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Speed up reveal of search dialogs
This commit is contained in:
parent
0a41b07297
commit
29594726ca
@ -255,7 +255,7 @@ RED.search = (function() {
|
|||||||
if (dialog === null) {
|
if (dialog === null) {
|
||||||
createDialog();
|
createDialog();
|
||||||
}
|
}
|
||||||
dialog.slideDown();
|
dialog.slideDown(300);
|
||||||
RED.events.emit("search:open");
|
RED.events.emit("search:open");
|
||||||
visible = true;
|
visible = true;
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,7 @@ RED.typeSearch = (function() {
|
|||||||
RED.events.emit("type-search:open");
|
RED.events.emit("type-search:open");
|
||||||
//shade.show();
|
//shade.show();
|
||||||
dialog.css({left:opts.x+"px",top:opts.y+"px"}).show();
|
dialog.css({left:opts.x+"px",top:opts.y+"px"}).show();
|
||||||
searchResultsDiv.slideDown();
|
searchResultsDiv.slideDown(300);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
searchResultsDiv.find(".red-ui-editableList-container").scrollTop(0);
|
searchResultsDiv.find(".red-ui-editableList-container").scrollTop(0);
|
||||||
searchInput.focus();
|
searchInput.focus();
|
||||||
|
Loading…
Reference in New Issue
Block a user