title: Reset total pages in jquery pagination plugin
body: <p>I am using TwbsPagination plug in for displaying paging in my app. It is working fine when we set the page size while initializing. However, based on the search result, I want to reset the total page count.</p>
  
  <p>When I try using </p>
  
  <pre><code>$('#pagination').twbsPagination({totalPages:10});
  </code></pre>
  
  <p>it is not resetting the total pages displayed. </p>