Skip to content

Commit

Permalink
Fixed setting timeflipbox minutes via drag & drop
Browse files Browse the repository at this point in the history
Fixed a regression that prevented users from setting the minutes field in
  timeflipboxes using drag & drop when minuteStep was set.
  • Loading branch information
eromba committed Sep 19, 2011
1 parent 245fe4f commit 08a2186
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/jquery.mobile.datebox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,9 @@
if ( self.dragEnd !== false ) {
e.preventDefault();
e.stopPropagation();
self._offset(self.dragTarget.parent().parent().data('field'), parseInt(( self.dragStart - self.dragEnd ) / 30, 10));
var fld = self.dragTarget.parent().parent().data('field'),
amount = parseInt(( self.dragStart - self.dragEnd ) / 30);
self._offset(fld, amount * ( (fld === "i") ? o.minuteStep : 1 ));
}
}
self.dragStart = false;
Expand Down

0 comments on commit 08a2186

Please sign in to comment.