I've tried ui.spinner and i find it very useful.

Here are couple of things I've changed to make it work better for my
project (below are chunks from diff my.ui.spinner.js ui.spinner.js):

1. Making mousewheel trigger 'spinchange' event:

156d155
<                               self._propagate('change', e);

It is kinda useful to make a single event being in charge of all
spinner changes. No need to think twice on ajax binding.

2. Fixing of this bug:
> Cloudream wrote:
> Press on one button, move your mouse out, then release your mouse, the
> spinner won't stop.

was not too accurate since 'mouseout' event now triggers 'spinchange'.
Which in case of ajax binding costs a useless server call and makes it
particulary confusing when you want visualize ajax call progress/
result (e.g. progress indicator and so on).
I didn't bother with a proper solution, but here is a quick hack:
54c54
<                                       self._mouseup(e, true);
---
>                                       self._mouseup(e);
93c93
<                                       self._mouseup(e, true);
---
>                                       self._mouseup(e);
197c196
<       _mouseup: function(e, do_propagate) {
---
>       _mouseup: function(e) {
201,202c200
<               if (do_propagate)
<                       this._propagate('change', e);
---
>               this._propagate('change', e);

Hope it is useful,
Artem.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to