Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well I found the solution myself, and I would like to share it, just in case somebody will face the same problem:</p> <p>New Style added:</p> <pre><code>&lt;style type="text/css"&gt; .hidden { visibility: hidden; height: 0px !important; padding: 0px !important; margin: 0px !important; } &lt;/style&gt; </code></pre> <p>List elements HTML:</p> <pre><code>&lt;li data-theme="c" mail-id="12345" class="mailRow"&gt; &lt;div class="buttonsRow hidden"&gt; &lt;a href="#" data-role="button" data-iconpos="top" data-icon="back" data-inline="true"&gt;Reply&lt;/a&gt; &lt;a href="#" data-role="button" data-iconpos="top" data-icon="delete" data-inline="true"&gt;Delete&lt;/a&gt; &lt;/div&gt; &lt;a href="#" class="messageRow"&gt; &lt;p data-role="desc" class="ui-li-aside"&gt;&lt;strong&gt;30/09/2011 11:09:34&lt;/strong&gt;&lt;/p&gt; &lt;h3 data-role="heading"&gt;USER1&lt;/h3&gt; &lt;p data-role="desc" &gt;&lt;strong&gt;Re: this is a test/strong&gt;&lt;/p&gt; &lt;p data-role="desc" &gt;TESTING THE MOBILE VERSION...&lt;/p&gt; &lt;/a&gt; &lt;/li&gt; </code></pre> <p>Javascript code:</p> <pre><code>function mailLinks() { $('.mailRow').live('swiperight', function(e){ $(this).find('.messageRow').animate({ marginLeft: "100%"} , 800, function(){ $(this).parentsUntil('li').find(".ui-icon-arrow-r").addClass("ui-icon-arrow-l").removeClass("ui-icon-arrow-r"); $(this).parent().find('.buttonsRow').removeClass("hidden"); $(this).addClass("hidden"); }); }); $('.mailRow').live('swipeleft', function(e){ $(this).find('.buttonsRow').addClass("hidden"); $(this).find('.messageRow').removeClass("hidden"); $(this).find('.messageRow').animate({ marginLeft: "0%"} , 800, function(){ $(this).parentsUntil('li').find(".ui-icon-arrow-l").addClass("ui-icon-arrow-r").removeClass("ui-icon-arrow-l"); }); }); $('.mailRow').live('tap', function(e){ e.preventDefault(); idMail = $(this).attr('mail-id'); loadPage('read'); }); } </code></pre> <p>It's not pretty, but it does work.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload