clean up event binding
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 14 Nov 2010 03:09:30 +0000 (22:09 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 14 Nov 2010 03:09:30 +0000 (22:09 -0500)
Always bind the swipe events to 'body' since the content role divs
won't always be the same size as the visible screen.

Bind and unbind the appropriate handlers when pages change. Still
need to work out when the *initial* event is triggered for each page.

kronolith/mobile.php

index ce6e6a7..f83bfe8 100644 (file)
@@ -77,7 +77,7 @@ $today = new Horde_Date($_SERVER['REQUEST_TIME']);
 </div>
 
 <!-- Month View -->
-<div data-role="page" id="monthview">
+<div data-role="page" id="monthview" class="monthview">
  <div data-role="header"><h1>Month</h1></div>
  <div data-role="content" class="ui-body" id="monthcontent">
   <div id="kronolithMinical" class="kronolithMinical">