NIFI-425: - Filtering is not clear when closing the new processor dialog. Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/bf7027c0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/bf7027c0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/bf7027c0
Branch: refs/heads/NIFI-250 Commit: bf7027c0760b433c3580a77282df24ed5aac67f2 Parents: aa21d07 Author: Matt Gilman <[email protected]> Authored: Tue Mar 17 08:32:13 2015 -0400 Committer: Matt Gilman <[email protected]> Committed: Tue Mar 17 08:32:13 2015 -0400 ---------------------------------------------------------------------- .../main/webapp/js/nf/canvas/nf-canvas-toolbox.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/bf7027c0/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js ---------------------------------------------------------------------- diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js index 72f4952..2812142 100644 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js @@ -239,22 +239,25 @@ nf.CanvasToolbox = (function () { * Resets the filtered processor types. */ var resetProcessorDialog = function () { + // clear the selected tag cloud + $('#processor-tag-cloud').tagcloud('clearSelectedTags'); + + // clear any filter strings + $('#processor-type-filter').addClass(config.styles.filterList).val(config.filterText); + + // reapply the filter + applyFilter(); + // clear the selected row $('#processor-type-description').text(''); $('#processor-type-name').text(''); $('#selected-processor-name').text(''); $('#selected-processor-type').text(''); - + // unselect any current selection var processTypesGrid = $('#processor-types-table').data('gridInstance'); processTypesGrid.setSelectedRows([]); processTypesGrid.resetActiveCell(); - - // clear any filter strings - $('#processor-type-filter').addClass(config.styles.filterList).val(config.filterText); - - // clear the selected tag cloud - $('#processor-tag-cloud').tagcloud('clearSelectedTags'); }; /**
