title: Unable to trigger modal-dialog show in Meteor template
body: <p>I have a modal dialog in my template. This dialog needs to be triggered from the code programatically. So I need to show the modal through javascript, as I cannot have a data-toggle button to launch the modal-dialog.</p>
  
  <p>The modal was working with bootstrap but with bootstrap-3 its not showing up, even though I can show it from the console directly. the problem here is how can I execute javascript post the template render, to launch the modal-dialog.</p>
  
  <p>There is a Template.rendered/created function which is called, and inside this this.autorun(runFunc) is supposed to run the code to update the DOM element. This is called correctly, but I still cannot trigger the modal to show-up.</p>
  
  <pre><code>Template.createDialog.created = function() {
  console.log("teamplate created");
  
  this.autorun(function(){
      $('#myModal').modal('show');    
    });
  };
  </code></pre>
  
  <p><strong>Update:</strong>
  This works:</p>
  
  <pre><code>Template.createDialog.rendered = function() {
  console.log("teamplate created");
  
  this.autorun(function(){
      $('#myModal').modal('show');    
    });
  };
  </code></pre>
  
  <p>Using the rendered function, I am able to trigger the modal to show up. But the problem is that rendered and created both are only called once. And I need a way to trigger the modal dialog consistently if a condition is reached.</p>
  
  <p>This bootstrap modal dialog with meteor is turning out to be painful and hacky. Is it not possible to show/hide modal using some class parameters?</p>