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:
992f705
)
luci2: wrap luci2.network.ifup and luci2.network.ifdown calls as LuCI2.network.setUp...
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 22 Oct 2013 18:59:07 +0000
(18:59 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 22 Oct 2013 18:59:07 +0000
(18:59 +0000)
luci2/htdocs/luci2/luci2.js
patch
|
blob
|
history
diff --git
a/luci2/htdocs/luci2/luci2.js
b/luci2/htdocs/luci2/luci2.js
index ffa58ea0de2d8ceedf9c119a711c57624940caab..d2ad812b5549b2be20f9508c8a844b4ea9c00e8c 100644
(file)
--- a/
luci2/htdocs/luci2/luci2.js
+++ b/
luci2/htdocs/luci2/luci2.js
@@
-1013,6
+1013,21
@@
function LuCI2()
method: 'nslookup',
params: [ 'data' ],
expect: { '': { code: -1 } }
+ }),
+
+
+ setUp: _luci2.rpc.declare({
+ object: 'luci2.network',
+ method: 'ifup',
+ params: [ 'data' ],
+ expect: { '': { code: -1 } }
+ }),
+
+ setDown: _luci2.rpc.declare({
+ object: 'luci2.network',
+ method: 'ifdown',
+ params: [ 'data' ],
+ expect: { '': { code: -1 } }
})
};