Add compact searchBox to status/catch/complete nodes

This commit is contained in:
Nick O'Leary
2020-06-01 21:09:58 +01:00
parent dc412b305c
commit 2ce424b567
7 changed files with 65 additions and 16 deletions

View File

@@ -38,6 +38,11 @@
this.element.addClass("red-ui-searchBox-input");
this.uiContainer = this.element.wrap("<div>").parent();
this.uiContainer.addClass("red-ui-searchBox-container");
if (this.options.style === "compact") {
this.uiContainer.addClass("red-ui-searchBox-compact");
}
if (this.element.parents("form").length === 0) {
var form = this.element.wrap("<form>").parent();
form.addClass("red-ui-searchBox-form");

View File

@@ -202,6 +202,7 @@ RED.sidebar.info.outliner = (function() {
var toolbar = $("<div>", {class:"red-ui-sidebar-header red-ui-info-toolbar"}).appendTo(container);
searchInput = $('<input type="text" data-i18n="[placeholder]menu.label.search">').appendTo(toolbar).searchBox({
style: "compact",
delay: 300,
change: function() {
var val = $(this).val();