').append(
138 | $('
').html(message),
139 | $dropdown,
140 | $previewButton
141 | );
142 |
143 |
144 | // Add OK and Cancel buttons
145 | dialogOptions.buttons = [
146 | {label: 'Cancel', action: 'cancelDialog'},
147 | {label: 'Ok', action: 'closeDialog'}
148 | ];
149 |
150 |
151 | // Close callback
152 | dialogOptions.onClose = closed;
153 |
154 |
155 | // Got all we need for the dialog, instantiate.
156 | dialog = new App.ui.dialogs.Dialog(dialogOptions);
157 |
158 |
159 | // Populate our earlier elements and attach listeners and whatnot
160 |
161 | // Init sample list in dropdown
162 | // Populate list
163 | for (i = 0; i < library.length; i += 1) {
164 |
165 | optionAttributes = {
166 | value: library[i].value
167 | };
168 |
169 | if (presetSample === library[i].value) {
170 | optionAttributes.selected = 'selected';
171 | }
172 |
173 | $dropdown.append(
174 | $('