diff options
Diffstat (limited to 'applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js')
-rw-r--r-- | applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js index 5baac07d1a..1f0b373b3a 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js @@ -519,8 +519,7 @@ return view.extend({ service_name = s2.option(form.ListValue, 'service_name', String.format('%s', _("DDNS Service provider"))); service_name.value('-',"-- " + _("custom") + " --"); - for (var elem in _this.services) - service_name.value(elem); + Object.keys(_this.services).sort().forEach(name => service_name.value(name)); service_name.validate = function(section_id, value) { if (value == '') return _("Select a service"); if (s2.service_supported == null) return _("Checking the service support..."); @@ -642,8 +641,7 @@ return view.extend({ String.format('%s', _("DDNS Service provider"))); service_name.modalonly = true; service_name.value('-',"-- " + _("custom") + " --"); - for (var elem in _this.services) - service_name.value(elem); + Object.keys(_this.services).sort().forEach(name => service_name.value(name)); service_name.cfgvalue = function(section_id) { return uci.get('ddns', section_id, 'service_name') || '-'; }; |