luci-base: form.js: harmonize title property handling
authorJo-Philipp Wich <jo@mein.io>
Thu, 8 Aug 2019 07:39:58 +0000 (09:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Aug 2019 20:58:15 +0000 (22:58 +0200)
commita90bf384b27afcb933509065441931d6d3beab2f
treeded97834a40a4fa618b1a3a6d250559c969d493f
parenta36e1e976bf5d58643d319d3a2a3bfbe5f45ea6d
luci-base: form.js: harmonize title property handling

Some title properties were expected to be functions, some strings.

Refactor the code to support both string or function values for all
title properties.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js