<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ngyuki</author_name>
  <author_url>https://blog.hatena.ne.jp/ngyuki/</author_url>
  <blog_title>ngyukiの日記</blog_title>
  <blog_url>https://ngyuki.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>js から Bootstrap の Modal を表示してそのモーダル上での操作に応じてなにかしたいとき（典型的には確認ダイアログとか）、Modal を Promise として扱えるようにしておくと async/await で直列に書けて便利です。 const promisifyModal = (modal, param) =&gt;{ const $modal = $(modal); return new Promise((resolve) =&gt; { $modal .data('modal-param', param) .data('modal-result', null) .off('hidde…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fngyuki.hatenablog.com%2Fentry%2F2019%2F10%2F14%2F111212&quot; title=&quot;Bootstrap の Modal を promisify して async/await で直列に書けるようにする - ngyukiの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-14 11:12:12</published>
  <title>Bootstrap の Modal を promisify して async/await で直列に書けるようにする</title>
  <type>rich</type>
  <url>https://ngyuki.hatenablog.com/entry/2019/10/14/111212</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
