View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 08059 | Bug reports | Theme editor | public | 2013-07-31 00:22 | 2013-11-25 15:40 |
| Reporter | DenisChenu | Assigned To | sammousa | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 2.05 RC | ||||
| Fixed in Version | 2.05+ | ||||
| Summary | 08059: Template editor register js and css file from template | ||||
| Description | Public template register js and css file, it's shown in iframe then must be without problem. But Yii put template.css and template.js in admin part | ||||
| Steps To Reproduce | It's for all template but some citronade use #wrapper in template.css then it's very clear. All other have same issue : | ||||
| Additional Information | seems to have bootstrap.js in iframe too: public survey take js and css from admin too. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 130731 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | not relevant | ||||
| Database type & version | not relevant | ||||
| Server OS (if known) | not relevant | ||||
| Webserver software & version (if known) | not relevant | ||||
| PHP Version | not relevant | ||||
| Git branch / Pull Request URL | |||||
| parent of | 08189 | closed | c_schmitz | .dialog is not a function in template editor |
| parent of | 08378 | closed | DenisChenu | Copying a template does nothing |
|
Uploaded 2 screenshot : And look at "iframe source" you find admin_core.js |
|
|
The error is caused by line 619 in templates.php: In AdminController.php we incorrectly register the javascript in the init function. This should instead be done in the view or layout. |
|
|
Myabe we have to do some "wiki" for all of this specificty ;). ACtually : it's better to register script in view ? Right ? |
|
|
Hi sammousa : even with removing this line , i have same problem. Doing it like this: Attch the new screen capture. Seems to be rendering on public survey ? |
|
|
PS: and try with replace all render by renderPartial for quick fix too ( the $fnew=false + renderPartial). No fix |
|
|
Fix committed to 2.05 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13444 |
|
|
Arrggg ...don't know reset ! Great, thanks ! |
|
|
2.05RC7 released |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-07-31 00:22 | DenisChenu | New Issue | |
| 2013-08-22 11:36 | DenisChenu | File Added: Capture du 2013-08-22 11:35:44.png | |
| 2013-08-22 11:37 | DenisChenu | File Added: Capture du 2013-08-22 11:36:15.png | |
| 2013-08-22 11:37 | DenisChenu | Assigned To | => sammousa |
| 2013-08-22 11:37 | DenisChenu | Status | new => assigned |
| 2013-08-22 11:39 | DenisChenu | Note Added: 26046 | |
| 2013-09-25 10:05 | DenisChenu | Relationship added | parent of 08189 |
| 2013-09-25 10:29 | sammousa | Note Added: 26359 | |
| 2013-09-25 10:36 | DenisChenu | Note Added: 26360 | |
| 2013-10-11 14:38 | DenisChenu | Note Added: 26727 | |
| 2013-10-11 14:41 | DenisChenu | File Added: Capture.png | |
| 2013-10-13 21:45 | DenisChenu | Note Added: 26768 | |
| 2013-11-13 11:48 | sammousa | Changeset attached | => LimeSurvey 2.05 d8fdf83e |
| 2013-11-13 11:48 | sammousa | Note Added: 27181 | |
| 2013-11-13 11:48 | sammousa | Resolution | open => fixed |
| 2013-11-13 11:48 | sammousa | Status | assigned => resolved |
| 2013-11-13 12:02 | DenisChenu | Note Added: 27182 | |
| 2013-11-17 12:17 | DenisChenu | Relationship added | parent of 08378 |
| 2013-11-25 15:40 | c_schmitz | Fixed in Version | => 2.05+ |
| 2013-11-25 15:40 | c_schmitz | Note Added: 27391 | |
| 2013-11-25 15:40 | c_schmitz | Status | resolved => closed |
| 2015-12-11 14:40 | c_schmitz | Category | Templates => Theme editor |