|
|
@@ -1199,13 +1199,13 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
|
|
|
<div class="input-prepend margin-top-10">
|
|
|
<span class="muted add-on" data-bind="text: name"></span>
|
|
|
<!-- ko if: meta.type() == 'text' -->
|
|
|
- <input class="input-medium" type="text" data-bind="value: value, attr: { placeholder: meta.placeholder() || '${ _ko('Variable value') }' }, valueUpdate: 'afterkeydown', autogrowInput: { minWidth: 150, maxWidth: 270, comfortZone: 15 }, event: { 'keydown': function (context, e){ if ((e.ctrlKey || e.metaKey) && e.which === 13) { $parent.ace().commands.commands['execute'].exec(); } return true; } }">
|
|
|
+ <input class="input-medium" type="text" data-bind="value: value, attr: { placeholder: meta.placeholder() || '${ _ko('Variable value') }' }, valueUpdate: 'afterkeydown', autogrowInput: { minWidth: 150, maxWidth: 270, comfortZone: 15 }, event: { 'keydown': $parent.onKeydownInVariable }">
|
|
|
<!-- /ko -->
|
|
|
<!-- ko if: meta.type() == 'select' && !('options' in document.createElement('datalist')) -->
|
|
|
- <select data-bind="options: meta.options(), optionsText: 'text', optionsValue:'value', value: value, attr: { placeholder: meta.placeholder() || '${ _ko('Variable value') }' }, event: { 'keydown': function (context, e){ if ((e.ctrlKey || e.metaKey) && e.which === 13) { $parent.ace().commands.commands['execute'].exec(); } return true; } }"/>
|
|
|
+ <select data-bind="options: meta.options(), optionsText: 'text', optionsValue:'value', value: value, attr: { placeholder: meta.placeholder() || '${ _ko('Variable value') }' }, event: { 'keydown': $parent.onKeydownInVariable }"/>
|
|
|
<!-- /ko -->
|
|
|
<!-- ko if: meta.type() == 'select' && 'options' in document.createElement('datalist') -->
|
|
|
- <input list="input-medium" type="text" data-bind="datalist: { options: meta.options(), optionsText: 'text', optionsValue: 'value', value: value }, valueUpdate: 'afterkeydown', autogrowInput: { minWidth: 150, maxWidth: 270, comfortZone: 15 }, attr: { placeholder: meta.placeholder() || '${ _ko('Variable value') }' }, event: { 'keydown': function (context, e){ if ((e.ctrlKey || e.metaKey) && e.which === 13) { $parent.ace().commands.commands['execute'].exec(); } return true; } }" />
|
|
|
+ <input list="input-medium" type="text" data-bind="datalist: { options: meta.options(), optionsText: 'text', optionsValue: 'value', value: value }, valueUpdate: 'afterkeydown', autogrowInput: { minWidth: 150, maxWidth: 270, comfortZone: 15 }, attr: { placeholder: meta.placeholder() || '${ _ko('Variable value') }' }, event: { 'keydown': $parent.onKeydownInVariable }" />
|
|
|
<!-- /ko -->
|
|
|
</div>
|
|
|
</li>
|