aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-05-23 14:59:49 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-06-17 14:24:23 +0100
commitc6b480d08c7aa9f8a08467e2631f7daa30b3be7e (patch)
tree32d08a0bc661b8959d13bbcdb17a5b3e482d8a27 /web
parent5ed63071d7813fdcbcb0f6f7d5bacdd28ce90a10 (diff)
admin interface for adding multiple groups to a category
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/admin.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/admin.js b/web/cobrands/fixmystreet/admin.js
index 8bc956c57..25c7651eb 100644
--- a/web/cobrands/fixmystreet/admin.js
+++ b/web/cobrands/fixmystreet/admin.js
@@ -165,6 +165,16 @@ $(function(){
return true;
});
+ $(".js-group-item-add").on("click", function(e) {
+ e.preventDefault();
+ var $template_item = $(".js-group-item-template");
+ var $new_item = $template_item.clone();
+ $new_item.removeClass("hidden-js js-group-item-template");
+ $new_item.insertBefore($template_item);
+ $new_item.focus();
+ return true;
+ });
+
// Fields can be added/removed
$(".js-metadata-item-add").on("click", function(e) {
e.preventDefault();