projects
/
project
/
luci2
/
ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e53a64
)
luci2: fix interface type detection in LuCI2.ui.devicebadge()
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 13 Oct 2013 22:40:24 +0000
(22:40 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 13 Oct 2013 22:40:24 +0000
(22:40 +0000)
luci2/htdocs/luci2/luci2.js
patch
|
blob
|
history
diff --git
a/luci2/htdocs/luci2/luci2.js
b/luci2/htdocs/luci2/luci2.js
index
df127e1
..
84ebf84
100644
(file)
--- a/
luci2/htdocs/luci2/luci2.js
+++ b/
luci2/htdocs/luci2/luci2.js
@@
-2700,7
+2700,9
@@
function LuCI2()
this.ui.devicebadge = AbstractWidget.extend({
render: function()
{
this.ui.devicebadge = AbstractWidget.extend({
render: function()
{
- var dev = this.options.l3_device || this.options.device || '?';
+ var l2dev = this.options.l2_device || this.options.device;
+ var l3dev = this.options.l3_device;
+ var dev = l3dev || l2dev || '?';
var span = document.createElement('span');
span.className = 'ifacebadge';
var span = document.createElement('span');
span.className = 'ifacebadge';
@@
-2741,7
+2743,7
@@
function LuCI2()
var type = 'ethernet';
var desc = _luci2.tr('Ethernet device');
var type = 'ethernet';
var desc = _luci2.tr('Ethernet device');
- if (
this.options.l3_device != this.options.device
)
+ if (
l3dev != l2dev
)
{
type = 'tunnel';
desc = _luci2.tr('Tunnel interface');
{
type = 'tunnel';
desc = _luci2.tr('Tunnel interface');