diff --git a/js/interface/dialog.js b/js/interface/dialog.js index 6c1007c6..a268798c 100644 --- a/js/interface/dialog.js +++ b/js/interface/dialog.js @@ -53,8 +53,9 @@ function buildForm(dialog) { bar.append(input_element) if (data.list) { - input_element.list = `${dialog.id}_${form_id}_list`; - let list = $(``); + let list_id = `${dialog.id}_${form_id}_list`; + input_element.setAttribute('list', list_id); + let list = $(``); for (let value of data.list) { let node = document.createElement('option'); node.value = value; @@ -402,7 +403,7 @@ window.Dialog = class Dialog { if (result === false) return; } if (typeof this.onButton == 'function') { - let result = this.onButton(button); + let result = this.onButton(button, event); if (result === false) return; } this.hide(); diff --git a/js/outliner/outliner.js b/js/outliner/outliner.js index f5f75cfa..e202062f 100644 --- a/js/outliner/outliner.js +++ b/js/outliner/outliner.js @@ -824,12 +824,12 @@ BARS.defineActions(function() { new: {label: 'dialog.select.new', type: 'checkbox', value: true}, group: {label: 'dialog.select.group', type: 'checkbox'}, name: {label: 'dialog.select.name', type: 'text'}, - texture: {label: 'data.texture', type: 'text'}, + texture: {label: 'data.texture', type: 'text', list: Texture.all.map(tex => tex.name)}, color: {label: 'menu.cube.color', type: 'select', value: '-1', options: color_options} }, lines: [ `
` ],