Skip to content

Commit

Permalink
add remove and clear buttons to article restriction selector (#5871)
Browse files Browse the repository at this point in the history
  • Loading branch information
escattone authored Feb 2, 2024
1 parent a47e77a commit 210d0cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kitsune/sumo/static/sumo/js/wiki.editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import "@selectize/selectize";
// Improve the interface for restricting articles.
$(function () {
$("select[id='id_restrict_to_groups']").selectize({
closeAfterSelect: true,
plugins: ["clear_button", "remove_button"],
placeholder: "Restrict visibility to selected group(s) ",
});
});
Expand Down

0 comments on commit 210d0cc

Please sign in to comment.