Changeset 2315


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

luci: Allow editing the dialcmd in a 3G profile

Location:
trunk/luci/modules/admin-fon/luasrc
Files:
2 edited

Legend:

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

    r2314 r2315  
    109109end
    110110
     111dialcmd = s:option(Value, "dialcmd", "Dial command")
     112dialcmd:value("ATD*99***1#")
     113dialcmd:value("ATD#777")
     114dialcmd:value("AT+GCDATA=\"PPP\",1")
     115
    111116for _, mode in ipairs(modes) do
    112117        s:option(Value, "mode_" .. mode, mode:gsub("_", " ") .. " command")
  • trunk/luci/modules/admin-fon/luasrc/view/fon_umtsd/profile_list.htm

    r2277 r2315  
    2121                set_tty($('<%= self.field_id('control')%>'), profile.control);
    2222                set_tty($('<%= self.field_id('data')%>'), profile.data);
     23                $('<%= self.field_id('dialcmd')%>').setValue(profile.dialcmd.trim());
     24                $('cbi.combobox.<%= self.field_id('dialcmd')%>').setValue(profile.dialcmd.trim());
    2325                <% for _, mode in ipairs(self.modes) do %>
    2426                        $('<%= self.field_id('mode_' ..
Note: See TracChangeset for help on using the changeset viewer.