luci2: fix protocol modules after modular rework
[project/luci2/ui.git] / luci2 / htdocs / luci2 / proto / static.js
index e9b9580..c1697af 100644 (file)
@@ -1,4 +1,4 @@
-L.NetworkModel.Protocol.extend({
+L.network.Protocol.extend({
        protocol:    'static',
        description: L.tr('Static address'),
        tunnel:      false,
@@ -39,7 +39,7 @@ L.NetworkModel.Protocol.extend({
 
        populateForm: function(section, iface)
        {
-               var device = L.NetworkModel.getDeviceByInterface(iface);
+               var device = L.network.getDeviceByInterface(iface);
 
                section.taboption('general', L.cbi.InputValue, 'ipaddr', {
                        caption:  L.tr('IPv4 address'),