luci-base: add support for DynamicList with FileBrowser
authorYousong Zhou <yszhou4tech@gmail.com>
Tue, 3 Nov 2015 06:20:03 +0000 (14:20 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Tue, 3 Nov 2015 09:07:45 +0000 (17:07 +0800)
commita28da6a88a0cd7a5bc0c12c1ef2d8cad86c2aff3
treea379a0d40127cd3265ac57a216231a651f304818
parent20ccc903505ee15419b5cde113f9061b7a4f7513
luci-base: add support for DynamicList with FileBrowser

Two new arguments url, defpath were added to cbi_dynlist_init() for
initializing the brower button.

An example of usage

    identity = section:taboption("general", DynamicList, "identity",
    translate("List of SSH key files for auth"))
    identity.datatype = "file"

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
modules/luci-base/htdocs/luci-static/resources/cbi.js
modules/luci-base/luasrc/view/cbi/dynlist.htm