|
122 | 122 | {!! Theme::js('vendor/lodash/lodash.js') !!} |
123 | 123 | <script> |
124 | 124 | $(document).ready(function () { |
125 | | - $('#pNestId').select2({ |
126 | | - placeholder: 'Select a Nest', |
127 | | - }).change(); |
128 | | - $('#pEggId').select2({ |
129 | | - placeholder: 'Select a Nest Egg', |
130 | | - }); |
131 | | - $('#pPackId').select2({ |
132 | | - placeholder: 'Select a Service Pack', |
133 | | - }); |
134 | | -
|
135 | | - $('input[data-action="match-regex"]').on('keyup', function (event) { |
136 | | - if (! $(this).data('regex')) return; |
137 | | -
|
138 | | - var input = $(this).val(); |
139 | | - var regex = new RegExp($(this).data('regex').replace(/^\/|\/$/g, '')); |
140 | | -
|
141 | | - $(this).parent().parent().removeClass('has-success has-error').addClass((! regex.test(input)) ? 'has-error' : 'has-success'); |
142 | | - }); |
| 125 | + $('#pNestId').select2({placeholder: 'Select a Nest'}).change(); |
| 126 | + $('#pEggId').select2({placeholder: 'Select a Nest Egg'}); |
| 127 | + $('#pPackId').select2({placeholder: 'Select a Service Pack'}); |
143 | 128 | }); |
144 | 129 | </script> |
145 | 130 | <script> |
|
192 | 177 | <h3 class="box-title">' + isRequired + item.name + '</h3> \ |
193 | 178 | </div> \ |
194 | 179 | <div class="box-body"> \ |
195 | | - <input data-action="match-regex" name="environment[' + item.env_variable + ']" class="form-control" type="text" value="' + setValue + '" /> \ |
| 180 | + <input name="environment[' + item.env_variable + ']" class="form-control" type="text" id="egg_variable_' + item.env_variable + '" /> \ |
196 | 181 | <p class="no-margin small text-muted">' + item.description + '</p> \ |
197 | 182 | </div> \ |
198 | 183 | <div class="box-footer"> \ |
|
202 | 187 | </div> \ |
203 | 188 | </div>'; |
204 | 189 | $('#appendVariablesTo').append(dataAppend); |
| 190 | + $('#appendVariablesTo').find('#egg_variable_' + item.env_variable).val(setValue); |
205 | 191 | }); |
206 | 192 | }); |
207 | 193 | </script> |
|
0 commit comments