fix js error after upgrade to cytoscrape.js 3.x

This commit is contained in:
Uwe Steinmann 2020-10-08 21:35:46 +02:00
parent d35d815376
commit 33b1e1f65f

View File

@ -150,7 +150,7 @@ cy.on('free', 'node', function(evt) {
});
cy.on('tap', 'node', function(evt) {
var node = evt.cyTarget;
var node = evt.target;
var scratch = node.scratch('app');
if(typeof scratch !== 'undefined') {
noty({
@ -217,12 +217,12 @@ $(document).ready(function() {
$transusers = $transition->getUsers();
$unames = array();
foreach($transusers as $transuser) {
$unames[] = $transuser->getUser()->getLogin().' - '.$transuser->getUser()->getFullName();
$unames[] = htmlspecialchars($transuser->getUser()->getLogin().' - '.$transuser->getUser()->getFullName());
}
$transgroups = $transition->getGroups();
$gnames = array();
foreach($transgroups as $transgroup) {
$gnames[] = $transgroup->getGroup()->getName();
$gnames[] = htmlspecialchars($transgroup->getGroup()->getName());
}
echo "cy.add({
data: {