2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
9 $.widget('ui.dialog', $.ui.dialog, {
11 buttonClass: 'button',
12 buttonPrimaryClass: 'button--primary'
14 _createButtons: function _createButtons() {
15 var opts = this.options;
16 var primaryIndex = void 0;
18 var il = opts.buttons.length;
19 for (index = 0; index < il; index++) {
20 if (opts.buttons[index].primary && opts.buttons[index].primary === true) {
22 delete opts.buttons[index].primary;
27 var $buttons = this.uiButtonSet.children().addClass(opts.buttonClass);
28 if (typeof primaryIndex !== 'undefined') {
29 $buttons.eq(index).addClass(opts.buttonPrimaryClass);