projects
/
project
/
luci2
/
ui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci2: UCIContext: add: respect "name" if passed
[project/luci2/ui.git]
/
luci2
/
htdocs
/
luci2
/
luci2.js
diff --git
a/luci2/htdocs/luci2/luci2.js
b/luci2/htdocs/luci2/luci2.js
index 2a2a35984be4c7a09614a4ed096a9e893e61a07c..040f1e5da2c8177b3270df06ca2f6c7fb23c4cd8 100644
(file)
--- a/
luci2/htdocs/luci2/luci2.js
+++ b/
luci2/htdocs/luci2/luci2.js
@@
-974,7
+974,7
@@
function LuCI2()
add: function(conf, type, name)
{
var n = this.state.creates;
- var sid = this.createSID(conf);
+ var sid =
name ||
this.createSID(conf);
if (!n[conf])
n[conf] = { };