diff --git a/public/src/admin/extend/widgets.js b/public/src/admin/extend/widgets.js index d2bf7c28ac..7d384e6a20 100644 --- a/public/src/admin/extend/widgets.js +++ b/public/src/admin/extend/widgets.js @@ -17,6 +17,11 @@ define('admin/extend/widgets', function() { return false; }); + $('#widget-selector').on('change', function() { + $('.available-widgets [data-widget]').addClass('hide'); + $('.available-widgets [data-widget="' + $(this).val() + '"]').removeClass('hide'); + }); + loadWidgetData(); }; diff --git a/src/views/admin/extend/widgets.tpl b/src/views/admin/extend/widgets.tpl index bcb6f1f382..6d8c758baa 100644 --- a/src/views/admin/extend/widgets.tpl +++ b/src/views/admin/extend/widgets.tpl @@ -42,10 +42,17 @@
+ +