title: jQuery mobile open popup from popup
body: <p>I'm using jQuery mobile <code>1.9.1 min</code> on PhoneGap.<br/>
  I have a list where each iten on click opens an actions popup:</p>
  
  <pre class="lang-js prettyprint-override"><code>function showActions(index){
      selectedIndex = index; 
      $("#actionPopup").popup("open", {positionTo: '#list li:nth-child('+ index +')'});
  }
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div data-role="popup" id="actionPopup" data-overlay-theme="a"&gt;
      &lt;a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right"&gt;Close&lt;/a&gt;
          &lt;ul data-role="listview"&gt;
                  &lt;li data-role="divider"&gt;Actions&lt;/li&gt;
                  &lt;li data-icon="false" onclick="showDetails();"&gt;action1&lt;/li&gt;
                  &lt;li data-icon="false"&gt;action2&lt;/li&gt;
                  &lt;li data-icon="false"&gt;action3&lt;/li&gt;
                  &lt;li data-icon="false"&gt;action4&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>When I press on action1 with <code>showDetails()</code> them method is called but the second popup isn't shown.</p>
  
  <pre class="lang-js prettyprint-override"><code>function showDetails(){
      console.log("showDetails");
      $("#infoPopup").popup("open");
  }
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div data-role="popup" id="infoPopup"&gt;
              &lt;a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right"&gt;Close&lt;/a&gt;
              &lt;div id="infoContent"&gt;
                  &lt;table&gt;
                      &lt;tr id="eventcode"&gt;
                          &lt;td&gt;test1:&lt;/td&gt;
                          &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr id="eventtype"&gt;
                          &lt;td&gt;test2:&lt;/td&gt;
                          &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>What can I do?</p>