[FIX] survey: only load js scripts when needed
This is done with the help of website.if_dom_contains and 1) js_surveyform class for survey.js 2) a new fake class js_surveyresult for survey_result.js This fix also allow to avoid spurious logs on runbot during phantomjs tests.
Showing
- addons/survey/static/src/js/survey.js 4 additions, 4 deletionsaddons/survey/static/src/js/survey.js
- addons/survey/static/src/js/survey_result.js 5 additions, 3 deletionsaddons/survey/static/src/js/survey_result.js
- addons/survey/views/survey_result.xml 1 addition, 1 deletionaddons/survey/views/survey_result.xml
Loading
Please register or sign in to comment