diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-09 03:01:24 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-09 03:01:24 -0400 |
| commit | ec9b5312490c537a533a92344a2455fc5c6450a3 (patch) | |
| tree | f89cc62dab6e94a1382d714f33664eff150da879 /themes/okadmin/public/js | |
| parent | b67050b4072616502abc5f5d30a60e4cceb6d6e9 (diff) | |
rearranging werkz
Diffstat (limited to 'themes/okadmin/public/js')
| -rw-r--r-- | themes/okadmin/public/js/app.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/okadmin/public/js/app.js b/themes/okadmin/public/js/app.js index b2d1dc2..3370485 100644 --- a/themes/okadmin/public/js/app.js +++ b/themes/okadmin/public/js/app.js @@ -31,6 +31,15 @@ var OKAdmin = function(){ $(this).parent().remove() } }) + + $("form").submit(function(){ + $(".image-element").each(function(index){ + $(this).find("input,textarea").each(function(){ + var field = $(this).attr("name").replace(/\[\]/, "[" + index + "]") + $(this).attr("name", field) + }) + }) + }) } $(function(){ |
