View Issue Details

IDProjectCategoryView StatusLast Update
12903Bug reports[All Projects] Survey designpublic2018-01-15 10:35
ReporterolleAssigned ToLouisGac 
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.0.0-rc.x 
Target Version3.0.xFixed in Version 
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.
Complete LimeSurvey version number (& build)latest dev
I will donate to the project if issue is resolvedNo
Browser-
Database & DB-Version-
Operating System (Server)-
Webserver software & version-
PHP Version-

Activities

LouisGac

LouisGac

2017-11-14 14:00

manager   ~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()

olle

olle

2017-11-14 14:15

administrator   ~45072

Is this fixed or "no change required"?

olle

olle

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

manager   ~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 olle 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 olle Note Added: 45072
2017-11-14 14:18 olle 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