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

scheduler: fix monthly repeat in setValue() #663

Merged
merged 1 commit into from
Sep 12, 2014
Merged

scheduler: fix monthly repeat in setValue() #663

merged 1 commit into from
Sep 12, 2014

Conversation

mscdex
Copy link
Contributor

@mscdex mscdex commented Sep 11, 2014

This fixes two issues I ran into today:

  1. I found that it wasn't enough to merely uncheck the input elements but the label elements also had to be unchecked otherwise the visual checkboxes would not update correctly
  2. When setting a month-day value, find('.select') was not selecting any elements. I believe the correct selector to be .selectlist instead since the current markup for the selectlist for .repeat-monthly-date does not have its own class like byday has .month-day-pos and .month-days.

This fixes two issues I ran into today:

1. I found that it wasn't enough to merely uncheck the input elements but the label elements also had to be unchecked otherwise the visual checkboxes would not update correctly
2. When setting a month-day value, `find('.select')` was not selecting any elements. I believe the correct selector to be `.selectlist` instead since the current markup for the selectlist for `.repeat-monthly-date` does not have its own class like `byday` has `.month-day-pos` and `.month-days`.
@kevinparkerson
Copy link
Contributor

Oh wow, yes, there are a few issues with that. Additionally, the "checked" attribute needs to be added / removed as necessary. Thanks for the catch! @mscdex

kevinparkerson pushed a commit that referenced this pull request Sep 12, 2014
scheduler: fix monthly repeat in setValue()
@kevinparkerson kevinparkerson merged commit 4728028 into ExactTarget:3.0.2-wip Sep 12, 2014
@kevinparkerson kevinparkerson added this to the 3.0.2 milestone Sep 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants