Skip to content

Commit 3ff507d

Browse files
committed
multi-link-creation
1 parent d29c720 commit 3ff507d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

www/js/homematic-manager.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,6 +2045,8 @@ function initGridLinks() {
20452045
if (s === s1 && t === t1) {
20462046
return;
20472047
}
2048+
console.log('option[value="' + s + ';' + t + '"]');
2049+
console.log($selectLinkParamsetMultiselect.find('option[value="' + s + ';' + t + '"]'));
20482050
$selectLinkParamsetMultiselect.find('option[value="' + s + ';' + t + '"]').attr('selected', true);
20492051
});
20502052
});
@@ -2090,8 +2092,15 @@ function createLinks(sender, targets, callback) {
20902092
});
20912093

20922094
async.mapSeries(links, (link, cb) => {
2093-
rpcDialog(daemon, 'addLink', cb);
2094-
}, callback);
2095+
rpcDialog(daemon, 'addLink', link, cb);
2096+
}, () => {
2097+
getLinks(() => {
2098+
if (typeof callback === 'function') {
2099+
callback();
2100+
}
2101+
});
2102+
2103+
});
20952104
}
20962105

20972106
function refreshGridLinks() {
@@ -2543,7 +2552,7 @@ function dialogLinkparamset(data0, data1, desc1, data2, desc2, sender, receiver)
25432552
if (indexChannels[link.SENDER].TYPE !== senderType) {
25442553
return;
25452554
}
2546-
const name = (link.NAME ? link.NAME + ' - ' : '') +
2555+
const name = /* (link.NAME ? link.NAME + ' - ' : '') + */
25472556
(names[link.SENDER] ? names[link.SENDER] + ' (' + link.SENDER + ')' : link.SENDER) +
25482557
' -> ' +
25492558
(names[link.RECEIVER] ? names[link.RECEIVER] + ' (' + link.RECEIVER + ')' : link.RECEIVER);

0 commit comments

Comments
 (0)