title: Bootstrap modal loaded.bs.modal is not firing
body: <p>I trigger a modal to load, and then I want to work on the content with coffee/javascript
  however the loaded event isnt working. I have the latest bootstrap version installed 3.2.</p>
  
  <pre><code>&lt;a data-toggle="modal" href="/messages/new" data-target="#modal" data-remote="true"&gt;
  </code></pre>
  
  <p>I have the following cofeescript that works (but fires upon showing which might not always work if the loading of the modal content is delayed)</p>
  
  <pre><code>$("#modal").on "shown.bs.modal", (e) -&gt;
      $(".typeahead-patient-search-box").typeahead 
          name: 'patients'
          remote:
              url: '../patients.json?query=%QUERY',
              filter: (respData) -&gt;
                  $(respData).each -&gt;
                      this.value = this.full_name 
                      this.tokens =  $(this.full_name).text().split(/\s+/)
          footer: "&lt;a href='/patients/new'&gt;Add New&lt;a/&gt;"
  </code></pre>
  
  <p>but changing it to this (note that i changed the event to loaded)</p>
  
  <pre><code>$("#modal").on "loaded.bs.modal", (e) -&gt;
      $(".typeahead-patient-search-box").typeahead 
          name: 'patients'
          remote:
              url: '../patients.json?query=%QUERY',
              filter: (respData) -&gt;
                  $(respData).each -&gt;
                      this.value = this.full_name 
                      this.tokens =  $(this.full_name).text().split(/\s+/)
          footer: "&lt;a href='/patients/new'&gt;Add New&lt;a/&gt;"
  </code></pre>
  
  <p>I have isolated the appropriate bootstrap code...</p>
  
  <pre><code>if (this.options.remote) {
        this.$element
          .find('.modal-content')
          .load(this.options.remote, $.proxy(function () {
            this.$element.trigger('loaded.bs.modal')
          }, this))
      }
    }
  </code></pre>
  
  <p>with breakpoints i can confirm that .find('.modal-content') runs but the breakpoint at  this.$element.trigger('loaded.bs.modal') is never triggered and i cant work out why?!?</p>
  
  <p>any help would be much appreciated</p>