View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05884 | Bug reports | Theme editor | public | 2012-03-07 11:21 | 2012-03-11 16:33 |
| Reporter | mmirasol | Assigned To | TMSWhite | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | unable to reproduce | ||
| Product Version | 1.92 | ||||
| Summary | 05884: Question template adds 'style=display:block;' when top div is set to 'display:none' | ||||
| Description | I recently discovered this after playing with the new 1.92 release. I made a copy of the default template and made a few changes to template.css and question.pstpl. Please see Steps to Reproduce. I noticed in Version 1.92 Build 120303, style=display:block; is automatically added to the question div if it set to display:none, which I find strange. To get around this, I created a new div within the top question div instead of modifying the top div directly. | ||||
| Steps To Reproduce |
<div {QUESTION_ESSENTIALS} class="{QUESTION_CLASS}{QUESTION_MAN_CLASS}{QUESTION_INPUT_ERROR_CLASS} {QUESTION_CODE}"> -- this works as expected, a6-other is displayed in the list of classes. see attached step2 image.
div.a6-other { -- to my surprise, it did the opposite. It added 'display:block;' to the question div. see attached step3 image. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 120303 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (x86_64) | ||||
| Server OS (if known) | 2.6.35-32-server GNU/Linux Ubuntu Server x86 | ||||
| Webserver software & version (if known) | Apache/2.2.16 (Ubuntu) | ||||
| PHP Version | PHP 5.3.3-1ubuntu9.10 | ||||
| Git branch / Pull Request URL | |||||
|
I attached the test survey with the template I used in the report. |
|
|
sorry, I failed to mentioned that I created just one short text question for this test. anyway, I attached the survey as well. |
|
|
Sorry, I can't reproduce this even using the examples you provide. The is no PHP code that adds style="display:block" The only thing that comes to mind is that when a question is relevant, we make a jQuery call to $(this).show(), and jQuery.show() behaviors similarly to doing $(this).css('display', 'block') (http://api.jquery.com/show/) |
|
|
Since can't reproduce this, closing it. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-03-07 11:21 | mmirasol | New Issue | |
| 2012-03-07 11:22 | mmirasol | File Added: step2.jpg | |
| 2012-03-07 11:22 | mmirasol | File Added: step3.jpg | |
| 2012-03-07 11:23 | mmirasol | File Added: limesurvey_survey_18418.lss | |
| 2012-03-07 11:24 | mmirasol | Note Added: 17771 | |
| 2012-03-07 11:24 | mmirasol | File Added: copy_of_default.zip | |
| 2012-03-07 11:26 | mmirasol | Note Added: 17772 | |
| 2012-03-07 16:51 | c_schmitz | Assigned To | => c_schmitz |
| 2012-03-07 16:51 | c_schmitz | Status | new => assigned |
| 2012-03-07 16:52 | c_schmitz | Assigned To | c_schmitz => TMSWhite |
| 2012-03-07 17:34 | TMSWhite | Note Added: 17779 | |
| 2012-03-07 17:34 | TMSWhite | Status | assigned => feedback |
| 2012-03-11 00:16 | TMSWhite | Note Added: 17819 | |
| 2012-03-11 00:16 | TMSWhite | Status | feedback => resolved |
| 2012-03-11 00:16 | TMSWhite | Resolution | open => unable to reproduce |
| 2012-03-11 16:33 | c_schmitz | Status | resolved => closed |
| 2015-12-11 14:40 | c_schmitz | Category | Templates => Theme editor |