Skip to content

Commit

Permalink
Small UI fixes
Browse files Browse the repository at this point in the history
Make the duplicate warnings disappear by correctly wrapping them inside
the "duplicate_box" div, as they had been before.  Reload the set of all
clients after import, so that users don't need to refresh their browser
page.
  • Loading branch information
cecilia-donnelly committed Aug 6, 2015
1 parent bd1eacc commit 21e3221
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ $(function() {
});
if (duplicate_lines != ""){
duplicate_lines += "</div>";
var warning_header = "<b>Warning: possible duplicates detected</b><br>";
var warning_header = "<div id='duplicate_box'><b>Warning: possible duplicates detected</b><br>";
var duplicate_warning = warning_header.concat(duplicate_lines);
$("#results").html(duplicate_warning);
}
Expand All @@ -123,7 +123,13 @@ $(function() {
// start reading
reader.readAsText(file);


//reset data with newly imported clients
$.ajax("/clients", {
method: "GET",
dataType: "json"
}).done(function(data) {
$("#index").data("full-data", data);
});
});
});

Expand Down

0 comments on commit 21e3221

Please sign in to comment.