title: Bootstrap: close modal and save changes
body: <pre><code>  &lt;div class="modal-footer"&gt;
      &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
      &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Is it possible close modal window and save changes with a single button. I have not found a solution.</p>