title: Issues adding a class to jquery ui dialog
body: <p>I'm trying to add an additional class to my jQuery dialog with the <code>dialogClass</code> property. Here's the javascript:</p>
  
  <pre><code>$(function(){
      $( "#toogleMAmaximized" ).dialog({
              title: 'Missions and Achivments',
              autoOpen: false,
              height: 500,
              width: 700,
              modal: true,
              dialogClass: 'noPadding',
              buttons: {
                      Cancel: function() {
                              $( this ).dialog( "close" );
                      }
              },
              close: function() {
                      allFields.val( "" ).removeClass( "ui-state-error" );
              }
  
      })
      $( "#toogleMAminimized" ).click(function() {
              $( "#toogleMAmaximized" ).dialog( "open" );
              $( "#toogleMAmaximized" ).dialog({dialogClass:'noPadding'});
      });
  })
  
  &lt;div id="toogleMAminimized" style="" class="noPadding"&gt;
  &lt;div class="" style="cursor: pointer;position: absolute;right: 0;top: 45px;"&gt;&lt;img src ="images/MAminimized.png" alt="missions and achivments"/&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Just in case you need it, my html code</p>
  
  <pre><code>&lt;div id="toogleMAmaximized" &gt;
  &lt;div id="missions"&gt;
      &lt;div id="mission1" missiontitle="A new home!" missionpoint="1" missionicon="images/missions/icon/anewhome-icon.png" missionimage="images/missions/anewhome.png" made="f" class="mission notDone"&gt;  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="achivments"&gt;
      &lt;div id="achivment1" achivmenttitle="Lucha sin cuartel!" achivmentpoint="10" achivmenticon="images/achivments/icon/1.png" achivmentimage="images/achivments/icon/luchasincuartel-plata-ico.png" made="t" class="achivment done"&gt;  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>As you can see, I've tried to add the class in many ways, I've tried all possible combinations but keep getting the same result: no <code>noPadding</code> class</p>