git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #83 from jtanx/master
[matches/MCTX3420.git]
/
testing
/
MCTXWeb
/
public_html
/
static
/
mctx.graph.js
diff --git
a/testing/MCTXWeb/public_html/static/mctx.graph.js
b/testing/MCTXWeb/public_html/static/mctx.graph.js
index
fd475ad
..
851fff2
100644
(file)
--- a/
testing/MCTXWeb/public_html/static/mctx.graph.js
+++ b/
testing/MCTXWeb/public_html/static/mctx.graph.js
@@
-66,14
+66,17
@@
$.fn.deployDevices = function(input_type, check_first, group) {
var container = this;
var apply = function(dict, prefix) {
$.each(dict, function(key, val) {
var container = this;
var apply = function(dict, prefix) {
$.each(dict, function(key, val) {
+ //Unique id (name mangling)
+ var id = container.attr('id') + "_" + prefix + "_" + val.name;
+
var attributes = {
'type' : input_type, 'value' : key, 'alt' : val.name,
'class' : prefix, 'name' : group,
var attributes = {
'type' : input_type, 'value' : key, 'alt' : val.name,
'class' : prefix, 'name' : group,
- 'id' :
prefix + '_' + val.name //Unique id (name mangling)
+ 'id' :
id
};
var entry = $("<input/>", attributes);
};
var entry = $("<input/>", attributes);
- var label = $("<label/>", {'for' :
prefix + '_' + val.name
, 'text' : val.name});
+ var label = $("<label/>", {'for' :
id
, 'text' : val.name});
entry.prop("checked", check_first);
check_first = false;
container.append(entry).append(label);
entry.prop("checked", check_first);
check_first = false;
container.append(entry).append(label);
UCC
git Repository :: git.ucc.asn.au