title: jQuery UI dialog open callback executes only once, but I want it to execute everytime the dialog opens
body: <p>jQuery UI dialog open callback executes only once, but I want it to execute every time the dialog opens..</p>
  
  <pre><code>$('&lt;div&gt;&lt;b&gt;&lt;center&gt;'+ text +'&lt;/center&gt;&lt;/b&gt;&lt;/div&gt;').dialog({
    title: '&lt;b&gt;User(s) with a similar name&lt;/b&gt;',
    modal: true,
    autoOpen: true,
    height: 'auto',
    width: 400,
    resizable: false,
    open: function(){
      $('#smartpaginate').smartpaginator({
        totalrecords: 3,
        recordsperpage: 2,
        datacontainer: 'all-tabs',
        dataelement: 'table',
        theme: 'green'
      });
    },
    buttons: {
      "Close": function(){
        $(this).dialog('close');
        return false;
      }
    }
  });
  </code></pre>
  
  <p>The callback function for open executes correctly and generates pagination, but after closing, every time it opens without a pagination.</p>