Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Feature/star incumbents #599

Merged
merged 2 commits into from
Sep 9, 2015
Merged

Feature/star incumbents #599

merged 2 commits into from
Sep 9, 2015

Conversation

noahmanger
Copy link
Contributor

Adds an option to include a star next to incumbents in datatables.

I know there's some data cleanup that needs to happen for this to be accurate, but wanted to get this at least into a PR while we sort that out.

var anchor = document.createElement('a');
anchor.textContent = data;
anchor.setAttribute('href', url);
anchor.setAttribute('title', data);
anchor.setAttribute('data-category', category);
anchor.classList.add('single-link');

if (incumbent === 'Incumbent') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer a boolean flag like isIncumbent over a string variable here. I'll change during merge.

@jmcarp jmcarp merged commit f546846 into develop Sep 9, 2015
@jmcarp jmcarp deleted the feature/star-incumbents branch October 2, 2015 16:36
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