title: Bootstrap popover custom template not work
body: <p>I'm trying to set a custom template to a popover using options, but the template is never added. Why?  this is the code. I need that method to work, because i can't use the method .popover(ecc..)</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;button type="button" data-loading-text="..." data-placement="bottom" id="selectRecipientsBtn"
                                  data-toggle="popover" data-trigger="manual" 
                                  class="btn btn-default dropdown-toggle destinatariDiv"&gt;
                                  &lt;span class="caret"&gt;&lt;/span&gt;
                              &lt;/button&gt;
  
  
  $('#selectRecipientsBtn').click(function(e) {
      e.preventDefault(); 
      loadManagers("&lt;c:url value='/secure/send/managers' /&gt;");
  });
  
  
  
  function loadManagers(urlToLoad){ var popoverTemplate = '&lt;div class="popover popover-managers"&gt;&lt;div class="arrow"&gt;&lt;/div&gt;'+
              '&lt;h3 class="popover-title"&gt;&lt;/h3&gt;&lt;div class="popover-content"&gt;'+
              '&lt;/div&gt;&lt;div class="popover-footer"&gt;&lt;/div&gt;&lt;/div&gt;';function loadManagers(urlToLoad) {
  
  $("#selectRecipientsBtn").button('loading');
  
  $.ajax({
      type : 'GET',
      url : urlToLoad,
      success : function(data, status, xhr) {
          $("#selectRecipientsBtn").button('reset');
          $("#selectRecipientsBtn").data("bs.popover").options.html=true;
          $("#selectRecipientsBtn").data("bs.popover").options.title='ciao';
          $("#selectRecipientsBtn").data("bs.popover").options.trigger='manual';
          $("#selectRecipientsBtn").data("bs.popover").options.content=data;
          $("#selectRecipientsBtn").data("bs.popover").options.template= popoverTemplate; 
          $("#selectRecipientsBtn").popover("show");
  
      },
      error : function(xhr, status, error) {
          alert("error");
      },
  });
  
  }
  </code></pre>