MDL-57697 mod_survey: clean up data passing to js
authorDan Poltawski <dan@moodle.com>
Wed, 15 Feb 2017 09:48:42 +0000 (09:48 +0000)
committerDan Poltawski <dan@moodle.com>
Wed, 15 Feb 2017 09:51:16 +0000 (09:51 +0000)
commitbdad6c4a9931d70dba72e75e93d0d9dcc8bbe684
tree63ac90c479340cf396f9611dfc9c65498ecd7f81
parent3f037586aec89b531a173f918ac593c4db13d688
MDL-57697 mod_survey: clean up data passing to js

Get rid of the ugly huge array passed to JS as it went over our debug
limit.

(It's a cleaner solution and we get rid of one globals hack.. I just was
avoiding doing to many changes in the original patch, because this whole
interface is not very usable and needs rethinking)
mod/survey/amd/build/validation.min.js
mod/survey/amd/src/validation.js
mod/survey/lib.php
mod/survey/view.php