aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-01 16:07:53 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-04 10:55:11 +0000
commite0ae38e1ebc35fc5346e7f1ee7da66a9cc60d753 (patch)
treec7dcd63f2c56edba00cae754efe66529c65d6493 /web
parent722f52d0c7efb9af6dd788f707353c8c8898fc31 (diff)
Make sure dropdown index numbers are updated too.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/admin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/admin.js b/web/cobrands/fixmystreet/admin.js
index 3066ee614..c40a7f960 100644
--- a/web/cobrands/fixmystreet/admin.js
+++ b/web/cobrands/fixmystreet/admin.js
@@ -165,7 +165,7 @@ $(function(){
function renumber_metadata_fields($item) {
var item_index = $item.data("index");
- $item.find("input[data-field-name").each(function(i) {
+ $item.find("[data-field-name]").each(function(i) {
var $input = $(this);
var prefix = "metadata["+item_index+"].";
var name = prefix + $input.data("fieldName");