From: Jo-Philipp Wich Date: Thu, 20 Jan 2011 00:47:03 +0000 (+0000) Subject: libs/web: fix row ordering for named sections X-Git-Tag: 0.11.0~2346 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=df5329a5cbc46710392d12e72e28549a9c6bf691 libs/web: fix row ordering for named sections --- diff --git a/libs/web/htdocs/luci-static/resources/cbi.js b/libs/web/htdocs/luci-static/resources/cbi.js index ac4eaa9b2..c1d0dfdc3 100644 --- a/libs/web/htdocs/luci-static/resources/cbi.js +++ b/libs/web/htdocs/luci-static/resources/cbi.js @@ -751,7 +751,7 @@ function cbi_row_swap(elem, up, store) /cbi-rowstyle-[12]/, 'cbi-rowstyle-' + (1 + (idx % 2)) ); - if (table.rows[idx].id && table.rows[idx].id.match(/-(cfg[0-9a-f]+)$/) ) + if (table.rows[idx].id && table.rows[idx].id.match(/-([^\-]+)$/) ) ids.push(RegExp.$1); }