Permalink
Browse files

rangeslider: update highlight on form reset. Fixes #5773 - Rangeslide…

…r layout breaks upon form reset.
  • Loading branch information...
arschmitz committed Apr 1, 2013
1 parent cc7a844 commit 47c820a31a7a1c9f686a999dba213d3cae9284ba
Showing with 10 additions and 0 deletions.
  1. +10 −0 js/widgets/forms/rangeslider.js
@@ -67,10 +67,20 @@ define( [ "jquery", "../../jquery.mobile.core", "../../jquery.mobile.widget", ".
this._on({
"mousedown":"_change"
});
this._on( this.element.closest( "form" ), {
"reset":"_handleReset"
});
this._on( firstHandle, {
"vmousedown": "_dragFirstHandle"
});
},
_handleReset: function(){
var self = this;
//we must wait for the stack to unwind before updateing other wise sliders will not have updated yet
setTimeout( function(){
self._updateHighlight();
},0);
},
_dragFirstHandle: function( event ) {
//if the first handle is dragged send the event to the first slider

0 comments on commit 47c820a

Please sign in to comment.