r2746 - spinner: fixed aria-valuenow implementation

r2746 - spinner: fixed aria-valuenow implementation


Author: pazu2k@gmail.com
Date: Sat Jun 13 08:31:48 2009
New Revision: 2746
Modified:
branches/dev/spinner/ui/ui.spinner.js
Log:
spinner: fixed aria-valuenow implementation
Modified: branches/dev/spinner/ui/ui.spinner.js
==============================================================================
--- branches/dev/spinner/ui/ui.spinner.js    (original)
+++ branches/dev/spinner/ui/ui.spinner.js    Sat Jun 13 08:31:48 2009
@@ -408,7 +408,7 @@
                $.ui.spinner.format.currency(newVal, this.options.currency,
this.options.groupSeparator, this.options.radixPoint) :
                $.ui.spinner.format.number(newVal, this._precision,
this.options.radix, this.options.groupSeparator, this.options.radixPoint,
this.options.padLength)
        );
-        this.element.parent().attr('aria-valuenow', this._getValue());
+        this.element.parents('.' + this.widgetBaseClass
+ ':first').attr('aria-valuenow', this._getValue());
    },
    _animate: function(d) {
        if (this.element.hasClass('ui-spinner-list') && ((d == 'up' &&
this._getValue() <= this.options.max) || (d == 'down' && this._getValue()