New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setDate is not updating the associated input field when set from code #43

Closed
focusnz opened this Issue Nov 28, 2012 · 5 comments

Comments

Projects
None yet
4 participants
@focusnz
Copy link

focusnz commented Nov 28, 2012

After upgrading from 2.1 to 2.2 the following code is not updating the associated input field.

$('#StartTime').scroller('setDate', d, true);

The associated input field does get updated after the date is selected in the control. But trying to set it from the code using the above command doesn't work.

@clod81

This comment has been minimized.

Copy link

clod81 commented Nov 28, 2012

+1 - same for me

@adre310

This comment has been minimized.

Copy link

adre310 commented Nov 29, 2012

in mobiscroll-core function setValue used unassigened variable - please change to

    that.setValue = function (sc, fill, time, temp) {
        if (!temp) {
            that.values = that.temp.slice(0);
        }

        if (visible && sc) {
            scrollToPos(time);
        }

        if (fill) {
           // my code */
            v = s.formatResult(that.temp);
           //my code*/
            that.val = v;
            if (input) {
                elm.val(v).trigger('change');
            }
        }
    };
@clod81

This comment has been minimized.

Copy link

clod81 commented Dec 2, 2012

any updates on fixes, bug fix release?

@adre310

This comment has been minimized.

Copy link

adre310 commented Dec 3, 2012

I am not a developer MOBISCROLL. I locally modified the code and it works.

dioslaska added a commit that referenced this issue Dec 4, 2012

@dioslaska

This comment has been minimized.

Copy link
Contributor

dioslaska commented Dec 6, 2012

Fixed as proposed (on development branch)

@dioslaska dioslaska closed this Dec 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment