From b6381989563f6c8c301e1cbf4a57a8ae3b21502d Mon Sep 17 00:00:00 2001 From: Jason Hafer Date: Wed, 6 Sep 2017 22:59:58 -0400 Subject: [PATCH] Fix filter-description plugin not showing button for 'bootbox' option The 'bootbox' option for the 'filter-description' plugin failed to re-show the button, once hidden. In my case, I selected a filter with a description field, pressed the down arrow key to select the next filter in the dropdown, which did not contain a description. I then pressed up arrow key to return to the previous filter with a description, but this time it did now show the filter-description button. I fixed the code to match the convention of the 'inline' and 'popover' options. --- src/plugins/filter-description/plugin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/filter-description/plugin.js b/src/plugins/filter-description/plugin.js index 91762b6b..4525cbe0 100644 --- a/src/plugins/filter-description/plugin.js +++ b/src/plugins/filter-description/plugin.js @@ -96,6 +96,9 @@ QueryBuilder.define('filter-description', function(options) { bootbox.alert($b.data('description')); }); } + else { + $b.show(); + } $b.data('description', description); }