View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
11261Bug reportsPrint Viewpublic2016-05-25 21:15
ReporterIfH Assigned ToLouisGac 
PriorityimmediateSeverityminor 
Status closedResolutionfixed 
Product Version2.50.x 
Summary11261: Printable survey javascript/jquery error
Description

I was trying to run some jquery in my template, but the file scripts/template.js never gets linked. So i've embedded my code into the print_survey.pstpl and ended up with an jquery reference error ($ not defined) in the javascript console.
I noticed that the (by default) referenced printablesurvey.js also encounters this problem.

ReferenceError: $ is not defined
http://localhost/scripts/admin/printablesurvey.js
Line 3

Also:
There seems to be a disconnect between the referenced files on the left side of the template editor (Standard files) and the actual referenced files. Or maybe this is just me not understanding, then a pointer to the right documentation would be appreciated.

Steps To Reproduce

Open printable version of any given survey and inspect the javascript console.

Additional Information

When you create a copy of the default template and start editing you get another error in firebug because of a missing resource:

http://localhost/upload/templates/copy_of_default/print_img_radio.png

I checked the directory on the server, there is no such file.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)Version 2.50+ Build 160506
I will donate to the project if issue is resolvedNo
BrowserIE11; FireFox 45.0.2
Database type & versionMySQL 5.5.46
Server OS (if known)Linux 3.13.0-59-generic #98-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
Webserver software & version (if known)Apache/2.4.7
PHP VersionPHP 5.5.9-1ubuntu4.16

Users monitoring this issue

There are no users monitoring this issue.

Activities

LouisGac

LouisGac

2016-05-25 15:30

developer   ~38857

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=19175

c_schmitz

c_schmitz

2016-05-25 21:15

administrator   ~38898

Version 2.50+ Build 160526 released

Related Changesets

LimeSurvey: master d05362c8

2016-05-25 15:30

LouisGac


Details Diff
Fixed issue 11261: Printable survey javascript/jquery error Affected Issues
11261
mod - application/helpers/common_helper.php Diff File
add - application/views/survey/system/print_survey/header.php Diff File

Issue History

Date Modified Username Field Change
2016-05-25 13:46 IfH New Issue
2016-05-25 14:20 c_schmitz Priority none => immediate
2016-05-25 14:21 c_schmitz Assigned To => ollehar
2016-05-25 14:21 c_schmitz Status new => assigned
2016-05-25 15:29 LouisGac Sticky Issue No => Yes
2016-05-25 15:29 c_schmitz Assigned To ollehar => LouisGac
2016-05-25 15:30 LouisGac Changeset attached => LimeSurvey master d05362c8
2016-05-25 15:30 LouisGac Note Added: 38857
2016-05-25 15:30 LouisGac Resolution open => fixed
2016-05-25 15:31 LouisGac Sticky Issue Yes => No
2016-05-25 15:31 LouisGac Status assigned => resolved
2016-05-25 21:15 c_schmitz Note Added: 38898
2016-05-25 21:15 c_schmitz Status resolved => closed