title: bootstrap 3 modal dialog not rendering as it should
body: <p>I have the following javascript code</p>
  
  <pre><code>$("#modal-yes-button").click(function (){
      $("#myModal").modal('hide');
      $(".modal-body").load('/url/that/returns/an/html/');
      $("#myModal").modal('show');
  });
  </code></pre>
  
  <p>and the following modal</p>
  
  <pre><code>&lt;div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
  
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;h3&gt;This is a question answer yes or later&lt;/h3&gt;
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button class="btn btn-danger" data-dismiss="modal" aria-hidden="true"&gt;Maybe Later&lt;/button&gt;
                  &lt;button id="modal-yes-button" class="btn btn-info" aria-hidden="true"&gt;Yes&lt;/button&gt;
  
              &lt;/div&gt;
          &lt;/div&gt;&lt;!--modal-content--&gt;
      &lt;/div&gt;&lt;!--modal-dialog--&gt;
  &lt;/div&gt;&lt;!--myModal--&gt;
  </code></pre>
  
  <p>I want the usere to press the yes button hide the modal(it says that bootstrap won't allow modal open when another one is open) load the new html content for the .modal-body and dipslay the modal dialog again. Only what i get is black screen(like when it shadows for the modal to appear) but the modal never appears. I played with it using the chrome dev tools and the modal appears normally</p>
  
  <p>chrome dev-tools</p>
  
  <pre><code>modaldialog = $("#myModal");
  modaldlgBody = $(".modal-body");
  modaldlgBody.load('/url/that/returns/html/');
  modaldialog.modal('show');
  </code></pre>
  
  <p>With the above commands the new new "body" is loaded normally. But if i try to load the dialog first and then press the yes button even when triggering the modal from the chrome dev-tools i get the same behavour, black screen. What could be wrong?</p>
  
  <p>chrome dev-tools that giving the same black screen</p>
  
  <pre><code>modaldialog = $("#myModal");
  modaldialog.modal('show');
  #pressing yes gets me the same black screen.
  </code></pre>