NIFI-576: - Fixing clear button. - Fixing issue with default selection in search location combo. - Showing 0% during initial search request.

Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
Matt Gilman 2015-05-03 17:59:41 -04:00 committed by Mark Payne
parent 22ded807be
commit f59491c8db
3 changed files with 18 additions and 4 deletions
nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp

View File

@ -238,6 +238,7 @@ input.searchable-field-input {
#provenance-search-location {
height: 18px;
line-height: 18px;
width: 424px;
}
/* event details dialog */
@ -465,8 +466,8 @@ div.progress-label {
display: block;
font-weight: bold;
text-align: center;
margin-top: -19px;
width: 378px;
margin-top: 4px;
}
/* provenance table */

View File

@ -44,7 +44,12 @@ nf.ProvenanceLineage = (function () {
handler: {
close: function () {
// reset the progress bar
$('#lineage-percent-complete').progressbar('value', 0);
var lineageProgressBar = $('#lineage-percent-complete');
lineageProgressBar.find('div.progress-label').remove();
// update the progress bar
var label = $('<div class="progress-label"></div>').text('0%');
lineageProgressBar.progressbar('value', 0).append(label);
}
}
});

View File

@ -418,7 +418,12 @@ nf.ProvenanceTable = (function () {
handler: {
close: function () {
// reset the progress bar
$('#provenance-percent-complete').progressbar('value', 0);
var provenanceProgressBar = $('#provenance-percent-complete');
provenanceProgressBar.find('div.progress-label').remove();
// update the progress bar
var label = $('<div class="progress-label"></div>').text('0%');
provenanceProgressBar.progressbar('value', 0).append(label);
}
}
});
@ -535,7 +540,7 @@ nf.ProvenanceTable = (function () {
}
// reset the stored query
query = {};
cachedQuery = {};
// reload the table
nf.ProvenanceTable.loadProvenanceTable();
@ -975,6 +980,9 @@ nf.ProvenanceTable = (function () {
// update the progress bar
var label = $('<div class="progress-label"></div>').text(value + '%');
if (value > 0) {
label.css('margin-top', '-19px');
}
progressBar.progressbar('value', value).append(label);
},