Commit 619739e9 authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

Merge branch '67-removing-an-interaction-adds-an-interaction' into 'master'

Resolve "Removing an interaction adds an interaction"

Closes #67

See merge request totem/ind!48
parents b52a30b8 8be2b89f
......@@ -123548,7 +123548,10 @@ EventRules.prototype.save = function()
value.push(this.rules[i].attributes);
}
var cellValue = this.getCellValue();
cellValue.setAttribute('on' + this.eventName, JSON.stringify(value));
// Store all interactions in the onclick attribute:
cellValue.setAttribute('onclick', JSON.stringify(value));
// Clear any interactions in the onhover attribute of legacy graphs:
cellValue.removeAttribute('onhover');
this.graph.getModel().setValue(this.cell, cellValue);
};
 
......@@ -211,7 +211,10 @@ EventRules.prototype.save = function()
value.push(this.rules[i].attributes);
}
var cellValue = this.getCellValue();
cellValue.setAttribute('on' + this.eventName, JSON.stringify(value));
// Store all interactions in the onclick attribute:
cellValue.setAttribute('onclick', JSON.stringify(value));
// Clear any interactions in the onhover attribute of legacy graphs:
cellValue.removeAttribute('onhover');
this.graph.getModel().setValue(this.cell, cellValue);
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment