return $.when.apply($, deferreds).then(function() {
$('button').prop('disabled', false);
return $.when(
- L.NetworkModel.refreshDeviceStatus(),
- L.NetworkModel.refreshInterfaceStatus()
+ L.network.refreshDeviceStatus(),
+ L.network.refreshInterfaceStatus()
);
}).then(function() {
- var networks = L.NetworkModel.getInterfaces();
+ var networks = L.network.getInterfaces();
for (var i = 0; i < networks.length; i++)
{
}
var max = 0.1;
- var networks = L.NetworkModel.getInterfaces();
+ var networks = L.network.getInterfaces();
for (var i = 0; i < networks.length; i++)
{
execute: function() {
var self = this;
- return L.NetworkModel.init().then(function() {
- self.renderContents(L.NetworkModel.getInterfaces());
+ return L.network.load().then(function() {
+ self.renderContents(L.network.getInterfaces());
});
}
});
execute: function() {
var self = this;
- var ifaces = L.NetworkModel.getInterfaces();
+ var ifaces = L.network.getInterfaces();
var m = new L.cbi.Map('network', {
readonly: !self.options.acls.network
renderContents: function() {
var self = this;
return $.when(
- L.NetworkModel.refreshStatus().then(function() {
- var wan = L.NetworkModel.findWAN();
- var wan6 = L.NetworkModel.findWAN6();
+ L.network.refreshStatus().then(function() {
+ var wan = L.network.findWAN();
+ var wan6 = L.network.findWAN6();
if (!wan && !wan6)
{
width: '146px',
align: 'right',
format: function(v) {
- var dev = L.NetworkModel.resolveAlias(v.getDevice());
+ var dev = L.network.resolveAlias(v.getDevice());
if (dev)
return $('<span />')
.addClass('badge')
execute: function()
{
var self = this;
- return L.NetworkModel.init().then(function() {
+ return L.network.load().then(function() {
self.repeat(self.renderContents, 5000);
});
}
prepare: function() {
delete m.sections[0].fields._net_dev.choices;
- var devs = L.NetworkModel.getDevices().sort(function(a, b) {
+ var devs = L.network.getDevices().sort(function(a, b) {
if (a.name() < b.name())
return -1;
else if (a.name() > b.name())