Mercurial > hg > isophonics-drupal-site
comparison core/misc/dialog/dialog.position.js @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
58 if (settings.autoResize === true || settings.autoResize === 'true') { | 58 if (settings.autoResize === true || settings.autoResize === 'true') { |
59 $element.dialog('option', { resizable: false, draggable: false }).dialog('widget').css('position', 'fixed'); | 59 $element.dialog('option', { resizable: false, draggable: false }).dialog('widget').css('position', 'fixed'); |
60 $(window).on('resize.dialogResize scroll.dialogResize', eventData, autoResize).trigger('resize.dialogResize'); | 60 $(window).on('resize.dialogResize scroll.dialogResize', eventData, autoResize).trigger('resize.dialogResize'); |
61 $(document).on('drupalViewportOffsetChange.dialogResize', eventData, autoResize); | 61 $(document).on('drupalViewportOffsetChange.dialogResize', eventData, autoResize); |
62 } | 62 } |
63 | |
64 $element.dialog('widget').css('zIndex', 601); | |
65 $('.ui-widget-overlay').css('zIndex', 600); | |
63 }, | 66 }, |
64 'dialog:beforeclose': function dialogBeforeclose(event, dialog, $element) { | 67 'dialog:beforeclose': function dialogBeforeclose(event, dialog, $element) { |
65 $(window).off('.dialogResize'); | 68 $(window).off('.dialogResize'); |
66 $(document).off('.dialogResize'); | 69 $(document).off('.dialogResize'); |
67 } | 70 } |