View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
12903Bug reportsSurvey editingpublic2018-01-15 10:35
Reporterollehar Assigned ToLouisGac 
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.0.0-rc.x 
Target Version3.0.x 
Summary12903: When using Ajax mode, template.js is not reloaded
Description

I have alert('hej') in tempalte.js. Without Ajax mode, it's shown at every new page. With Ajax mode, it's only shown once.

Steps To Reproduce
  1. Extend default template
  2. Add alert('hej'); in template.js
  3. Make survey use extended template
  4. Try with Ajax mode on and off
  5. Different result
TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)latest dev
I will donate to the project if issue is resolvedNo
Browser-
Database type & version-
Server OS (if known)-
Webserver software & version (if known)-
PHP Version-

Users monitoring this issue

There are no users monitoring this issue.

Activities

LouisGac

LouisGac

2017-11-14 14:00

developer   ~45071

if you create a template yourself using ajax, then you don't do that.
if you create a template yourself using ajax, and you want the js to be loaded at each body reload: you load the js in body via the twig function registerTemplateScript()

ollehar

ollehar

2017-11-14 14:15

administrator   ~45072

Is this fixed or "no change required"?

ollehar

ollehar

2017-11-14 14:18

administrator   ~45073

So it's not possible to use $(document).ready() to load JS on every page?

LouisGac

LouisGac

2017-11-14 14:18

developer   ~45074

yes it is

c_schmitz

c_schmitz

2018-01-15 10:35

administrator   ~45629

Version 3.0.3 released.

Issue History

Date Modified Username Field Change
2017-11-14 10:04 ollehar New Issue
2017-11-14 14:00 LouisGac Assigned To => LouisGac
2017-11-14 14:00 LouisGac Status new => resolved
2017-11-14 14:00 LouisGac Resolution open => fixed
2017-11-14 14:00 LouisGac Note Added: 45071
2017-11-14 14:15 ollehar Note Added: 45072
2017-11-14 14:18 ollehar Note Added: 45073
2017-11-14 14:18 LouisGac Note Added: 45074
2018-01-15 10:35 c_schmitz Note Added: 45629
2018-01-15 10:35 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing