From df5329a5cbc46710392d12e72e28549a9c6bf691 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 20 Jan 2011 00:47:03 +0000 Subject: [PATCH] libs/web: fix row ordering for named sections --- libs/web/htdocs/luci-static/resources/cbi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/web/htdocs/luci-static/resources/cbi.js b/libs/web/htdocs/luci-static/resources/cbi.js index ac4eaa9b23..c1d0dfdc36 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); } -- 2.30.2