Skip to content
Snippets Groups Projects
Commit 1d72dfbd authored by Lukas Gygi's avatar Lukas Gygi
Browse files

can now edit booleans and integers of events

parent ac48ea51
No related branches found
No related tags found
No related merge requests found
......@@ -373,6 +373,7 @@
if (changed) {
//workaround to get booleans and ints working
for (var i in curEventDataChanged) {
if (curEventDataChanged[i] === 'null' || curEventDataChanged[i] === '') curEventDataChanged[i] = null;
if (curEventDataChanged[i] === 'true') curEventDataChanged[i] = true;
if (curEventDataChanged[i] === 'false') curEventDataChanged[i] = false;
if (!isNaN(curEventDataChanged[i])) curEventDataChanged[i] = parseInt(curEventDataChanged[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment