Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Allow any timzone object keys for scheduler setValue #1472

Conversation

interactivellama
Copy link
Contributor

Create jQuery selection string for timezone object based on data-attributes and pass to time zone selectlist. Would love to test if it is an object first, but this is JavaScript.

Fixes #1471.

item = 'li[data';
// create jQuery selection string for timezone object
// based on data-attributes and pass to selectlist
item = 'li';
if (options.timeZone) {
if (typeof (options.timeZone) === 'string') {
item += '-name="' + options.timeZone;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs adjusted as well.
item += '[data-name="' + options.timeZone + '"]';

@cmcculloh-kr
Copy link

Correct that one thing, and I can verify that this works in AS :)

Create jQuery selection string for timezone object
based on data-attributes and pass to selectlist
@interactivellama interactivellama force-pushed the scheduler-setValue-timezone branch from 41f56d1 to 7451f86 Compare August 19, 2015 03:33
@interactivellama
Copy link
Contributor Author

interactivellama added a commit that referenced this pull request Aug 19, 2015
…ezone

Allow any timzone object keys for scheduler setValue
@interactivellama interactivellama merged commit e391532 into ExactTarget:master Aug 19, 2015
@interactivellama interactivellama deleted the scheduler-setValue-timezone branch April 4, 2016 15:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants