Skip to content

Commit

Permalink
Merge pull request #83 from eromba/master
Browse files Browse the repository at this point in the history
Fix for timeflipbox minutes-field drag & drop
  • Loading branch information
jtsage committed Oct 5, 2011
2 parents 31d82ab + 08a2186 commit ac170cd
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 @@ -1170,7 +1170,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 ac170cd

Please sign in to comment.