outofcopyright / outofcopyright-website

Website components for OutOfCopyright.eu
http://outofcopyright.eu
Other
0 stars 2 forks source link

Long questions in datapoints lead to no datapoint being created. #61

Closed mzeinstra closed 9 years ago

mzeinstra commented 9 years ago

I tried creating the a list datapoint with this question: "Is the author a national of a signatory of Berne, TRIPS or WCT, and/or is the author's country of residence a signatory of Berne, TRIPS or WCT?"

I added Yes and No as possible answered. Clicking 'Add new Datapoint' and gave this error in the console:

Uncaught ReferenceError: _TRIPS_or_WCT is not definedVM1559:1 (anonymous function)diagram-editor.js:169 (anonymous function)code.jquery.com/jquery-1.11.0.min.js:3 n.event.dispatchcode.jquery.com/jquery-1.11.0.min.js:3 r.handle

mzeinstra commented 9 years ago

I realise this can also happen because there are special characters in the question: (,/?)

mzeinstra commented 9 years ago

EDIT: Sorry this problem was caused by a non-exsisting datapoints in the the country JSON and not the same issue as above

This also happens when I wanted to create a datapoint (static) with this name "Term of protection for typographical arrangement of published edition" with the value 25

I get this error:

Uncaught TypeError: Cannot read property 'push' of undefineddatapoints.js:37 addDatapointdiagram-editor.js:180 (anonymous function)jquery-1.11.0.min.js:3 n.event.dispatchjquery-1.11.0.min.js:3 r.handle

jeromejesse commented 9 years ago

Ok I fixed.