summaryrefslogtreecommitdiff
path: root/management
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-22 22:52:10 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-22 22:52:10 -0800
commit91de4e0ad607aff54fa51914c08f357b535684b1 (patch)
tree5613c44366fb903a8cdcd39181258eb216bd15c5 /management
parentd9916ff0fbba3d2a24c709f44fd728ef862daf69 (diff)
checking for bad inputs explicitly -- could be improved
Diffstat (limited to 'management')
-rw-r--r--management/editor/repeaters.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/management/editor/repeaters.go b/management/editor/repeaters.go
index fea09d4..f528894 100644
--- a/management/editor/repeaters.go
+++ b/management/editor/repeaters.go
@@ -269,7 +269,7 @@ func RepeatController(fieldName string, p interface{}, inputSelector, cloneSelec
// if the elem is not ` + inputSelector + ` and has no value
// set the name to an empty string
if (!$elem.is('` + inputSelector + `')) {
- if ($elem.val() === '') {
+ if ($elem.val() === '' || $elem.is('.file-path')) {
$elem.attr('name', '');
} else {
$elem.attr('name', name);
@@ -378,7 +378,7 @@ func RepeatController(fieldName string, p interface{}, inputSelector, cloneSelec
}
}
- applyRepeatControllers();
+ resetFieldNames();
});
</script>