Changeset 2321


Ignore:
Timestamp:
Sep 2, 2013, 4:26:46 PM (5 years ago)
Author:
matthijs
Message:

luci: Remove the DNS option for custom 3G provider info

Since there is already a DNS field a bit further down in the interface,
it is confusing and unnecessary that there is also one in the
apn/username/password set of fields. Better just remove it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/modules/admin-fon/luasrc/model/cbi/fon_umts/configure.lua

    r2320 r2321  
    9292end
    9393
    94 local dns = s:option(Value, "umts_custom_dns", translate("wan_dns", "DNS"))
    95 dns:depends({umts_country="_custom"})
    96 
    97 function dns.formvalue(self, section)
    98         local uservalue = Value.formvalue(self, section)
    99 
    100         if not uservalue or #uservalue == 0 then
    101                 local p = providers[provider:formvalue(section)]
    102                 if p then
    103                         uservalue = p and p.dns
    104                 end
    105         end
    106 
    107         return uservalue or ""
    108 end
    109 
    11094local n = Map("fon", translate("umts_adv_title", "Advanced Settings"))
    11195s = n:section(NamedSection, "advanced")
Note: See TracChangeset for help on using the changeset viewer.