mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
fix js error after upgrade to cytoscrape.js 3.x
This commit is contained in:
parent
d35d815376
commit
33b1e1f65f
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user