powmedia / backbone.bootstrap-modal

Bootstrap Modal wrapper for use with Backbone.
MIT License
183 stars 97 forks source link

How do I NOT display the Ok button? #38

Closed albertpeiro closed 9 years ago

albertpeiro commented 11 years ago

I've tried with this inside the view passed on to the modal and it looks like the button has not loaded yet when render gets called. Howerver the same works when an event (like click) is fired from the modal for example -> that proves the button is accessible.

render: function() {
      $(this.el).html(template);
      $('.ok').hide();
      return this;
    },