luci-base: cbi: fix reverse field order after dependency change
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jan 2016 17:59:14 +0000 (18:59 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jan 2016 17:59:19 +0000 (18:59 +0100)
commit808c1b77f9008bc9f4a760ea0629b3fd4e49fbcb
tree2d85cb6e89133e5610d189d9a5bc5b4c7099be05
parentb50471787feb9c04b365ff239aee8f39eadc236b
luci-base: cbi: fix reverse field order after dependency change

When fields got removed and readded due to unsatisfied dependencies, they
got inserted in reverse order into the dom.

Fix this issue by properly passing the element index.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/htdocs/luci-static/resources/cbi.js