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

Update Data Tracker JS and CSS from production app #106

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

mddilley
Copy link
Contributor

@mddilley mddilley commented Jun 23, 2022

This PR adds some JS that was in the production Data Tracker app but not in the repo. I'll add a comment to that part because the rest is formatting that came from me pasting from the Knack code editor. Trying to get a clean diff for the Knack code for cityofaustin/atd-data-tech#9053, but I didn't realize there was an open pull request that looks kind of stale #78 that could conflict with these updates.

If there is a good reason not to merge this, let me know and I'll stand down. 🙏

Comment on lines +916 to +927
//// Update link text to cabinet details page from signal detals
$(document).on("knack-view-render.view_1261", function (event, page) {
// find cabinet ID field div
var el = $(".field_1789");
// find child <a>
var a = $(el).find("a");
// update text
$(a).addClass("kn-link kn-link-1 kn-link-page kn-button");
$(a).html(
"<span class='icon is-small'><i class='fa fa-list'></i></span><span>Cabinet details</span>"
);
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This wasn't in here yet.

@mddilley mddilley requested review from johnclary and chiaberry June 23, 2022 04:30
Copy link
Member

@johnclary johnclary left a comment

Choose a reason for hiding this comment

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

👍

@mddilley mddilley merged commit 8d1d7fc into master Jun 23, 2022
@mddilley mddilley deleted the md-update-data-tracker-code-from-prod branch June 23, 2022 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants