Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
popup_container.phtml
Go to the documentation of this file.
1 <?php
11 // @codingStandardsIgnoreFile
12 ?>
13 <script>
14  require([
15  "jquery",
16  'Magento_Ui/js/modal/confirm',
17  "jquery/ui",
18  "Magento_Integration/js/integration",
19  'mage/dataPost'
20  ], function ($, Confirm) {
21 
22  window.integration = new Integration(
23  '<?= /* @escapeNotVerified */ $block->getUrl('*/*/permissionsDialog', ['id' => ':id', 'reauthorize' => ':isReauthorize', '_escape_params' => false]) ?>',
24  '<?= /* @escapeNotVerified */ $block->getUrl('*/*/tokensDialog', ['id' => ':id', 'reauthorize' => ':isReauthorize', '_escape_params' => false]) ?>',
25  '<?= /* @escapeNotVerified */ $block->getUrl('*/*/tokensExchange', ['id' => ':id', 'reauthorize' => ':isReauthorize', '_escape_params' => false]) ?>',
26  '<?= /* @escapeNotVerified */ $block->getUrl('*/*') ?>',
27  '<?= /* @escapeNotVerified */ $block->getUrl('*/*/loginSuccessCallback') ?>'
28  );
29 
33  $(function () {
34  $('div#integrationGrid').on('click', 'button#delete', function (e) {
35 
36  new Confirm({
37  title: '<?= /* @escapeNotVerified */ __('Are you sure?') ?>',
38  content: "<?= /* @escapeNotVerified */ __("Are you sure you want to delete this integration? You can't undo this action.") ?>",
39  actions: {
40  confirm: function () {
41  $.mage.dataPost().postData({action: $(e.target).data('url'), data: {}});
42  }
43  }
44  });
45  e.stopPropagation();
46  });
47  });
48  });
49 </script>
50 
51 <div id="integration-popup-container" style="display: none;"></div>
__()
Definition: __.php:13
$block
Definition: block.php:8