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

(avoid-dupe-theads) make sure thead actually gets removed #940

Merged
merged 1 commit into from
Dec 17, 2014

Conversation

cmcculloh-kr
Copy link

Fixes #897. "repeater-list-header" is not a thing.

@kevinparkerson kevinparkerson added this to the 3.5.0 milestone Dec 15, 2014
@cmcculloh-kr
Copy link
Author

repeater-list-header was a typo. it should have been repeater-list-heading. But, just removing the thead is safer than assuming the class name is there.

@@ -279,7 +279,7 @@
};

if(this.list_firstRender || differentColumns(this.list_columns, helpers.data.columns)){
this.$element.find('.repeater-list-header').remove();
this.$element.find('thead').remove();
Copy link
Contributor

Choose a reason for hiding this comment

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

not a fan of selecting on tag instead of class but since

  • there is no class at this point to select on
  • line 287 adds the thead tag

the solution is good enough

swilliamset pushed a commit that referenced this pull request Dec 17, 2014
(avoid-dupe-theads) make sure thead actually gets removed
@swilliamset swilliamset merged commit bfd0b1b into ExactTarget:master Dec 17, 2014
@cmcculloh-kr cmcculloh-kr deleted the avoid-dupe-theads branch February 6, 2015 19:03
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.

Repeater headers duplicated when switching between views of same type
4 participants