• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alphagov / notifications-admin / 2757
85%
master: 94%

Build:
Build:
LAST BUILD BRANCH: fix-days-provider-history
DEFAULT BRANCH: master
Ran 27 Apr 2016 08:41AM UTC
Jobs 1
Files 49
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2757

push

travis-ci

quis
Patch update sections of the page on AJAX

Currently, when we update a section of the page with AJAX we replace the
entire HTML of the section with the new HTML. This causes problems:
- if you’re trying to interact with that section of the page, eg by
  inpecting it, clicking or hovering an element
- (probably) for screenreaders trying to navigate a page which is
  changing more than is necessary

This commit replaces the call to `.html()` with a pretty clever library
called diffDOM[1]. DiffDOM works by taking a diff of the old element and
the new element, then doing a patch update, ie only modifying the parts
that have changed.

This is similar in concept to React’s virtual DOM, while still allowing
us to render all markup from one set of templates on the server-side.

1. https://github.com/fiduswriter/diffDOM

1596 of 1886 relevant lines covered (84.62%)

0.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2757.1 (auth_token=[secure]) 27 Apr 2016 08:41AM UTC 0
84.62
Travis Job 2757.1
Source Files on build 2757
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2757
  • 70d77a84 on github
  • Prev Build on ajax-patching (#2755)
  • Next Build on ajax-patching (#2759)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc