Skip to content
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

ability add an option to the end #405

Open
BMeyerKC opened this issue Jun 15, 2015 · 1 comment
Open

ability add an option to the end #405

BMeyerKC opened this issue Jun 15, 2015 · 1 comment

Comments

@BMeyerKC
Copy link

I would like to add some options to the end of the times instead of the beginning. Similar to noneOption but perhaps endOption.

Just for my own sanity I copied noneOptions and added this after the time options loop.

    if (settings.endOption) {
        if (settings.endOption === true) {
            settings.endOption = (settings.useSelect) ? 'Time...' : 'None';
        }

        if ($.isArray(settings.endOption)) {
            for (var i in settings.endOption) {
                if (parseInt(i, 10) == i) {
                    var noneElement = _generateNoneElement(settings.endOption[i], settings.useSelect);
                    list.append(noneElement);
                }
            }
        } else {
            var noneElement = _generateNoneElement(settings.endOption, settings.useSelect);
            list.append(noneElement);
        }
    }
@marcoleejr
Copy link

I just made this enhacement and I would like to share it! 👍

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

No branches or pull requests

3 participants