View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
13322 | Bug reports | Other | public | 2018-02-08 19:52 | 2018-11-02 12:15 |
Reporter | JamesHarrisHKI | Assigned To | |||
Priority | high | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.1.x | ||||
Fixed in Version | 3.4.x | ||||
Summary | 13322: DateTime picker opens partially or not at all | ||||
Description | To create a minimal, complete, verifiable example for this, I created a survey with two identical Date/Time questions. Both are set to use the format "dd/mm/yyyy HH:MM", so clicking the calendar button by each field should open a date-and-time picker. When the survey is set to use certain themes, such as "fruity", clicking the second calendar button opens a date-and-time picker as expected, but clicking the first one only opens the date picker. Both questions use the exact same settings; they should have the same behavior. When the survey uses other themes, such as "bootswatch" or "vanilla", no pickers will open at all. The browser's console shows this error: "uncaught exception: bootstrap-datetimepicker requires Moment.js to be loaded first", followed by "TypeError: jQuery(...).datetimepicker is not a function". Curiously, one of our people extended the "bootswatch" theme and got the partially-working behavior from the "fruity" theme, despite the extended theme only making a few color changes in CSS. Here's my example, set to use "fruity": http://uksurveys.hkipop.com/index.php/114454?newtest=Y&lang=en We are using the most recent code from the master branch, commit cd7ead6. Vanilla: No popups | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 14 | ||||
Complete LimeSurvey version number (& build) | cd7ead6 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Firefox and Chrome | ||||
Database type & version | 347 | ||||
Server OS (if known) | Windows Server 2008 | ||||
Webserver software & version (if known) | Apache/2.4.23 (Win64) | ||||
PHP Version | 7.0.9 | ||||
related to | 14194 | closed | DenisChenu | Datepicker not working with user template |
Is this still an issue in the latest release version? |
|
Yes. Here is the sample survey: http://uksurveys.hkipop.com/index.php/114454?newtest=Y&lang=en |
|
I have exported the survey as an .lsa file, attached. Is that what you need? |
|
We've switched to limesurvey3.3.0+180209 and the bug still appears. |
|
This bug report is for DateTime pickers, but we're seeing a related issue with Date pickers. Sometimes (but not always) the console will say "uncaught exception: bootstrap-datetimepicker requires Moment.js to be loaded first" and the Date picker will fail to open when clicked. Perhaps there's a race condition happening? |
|
I tried to reproduce this on Linux without success. The date picker works fine. The picker works fine in your link, too. Can this issue be closed? |
|
Markus could you have a look to the moment.js loading problem? |
|
To use the datetimepicker moment has to be loaded as a package in the theme. |
|
Reporter say: " Sometimes (but not always) the console will say "uncaught exception: bootstrap-datetimepicker requires Moment.js to be loaded first" and the Date picker will fail to open when clicked. " could you check how the date picker's js and moment js are loaded? |
|
After upgrading to LimeSurvey 3.4.3+180227, the moment.js loading problem no longer appears. On all themes, DatePickers and DateTimePickers will no longer fail to open. Thank you for the fix. :-) We still have the issue that when placing two identical DateTimePickers in a survey, the first one will consistently produce a DatePicker instead. See attached screenshots, created from the same sample survey I linked above: http://uksurveys.hkipop.com/index.php/114454?newtest=Y&lang=en |
|
ok thank you for that feedback! |
|
I have just noticed that DateTimePicker 1 has a small clock icon at the bottom that, when clicked, reveals the "time" side of the DateTimePicker. This is not clear enough, and it is not consistent. Please label the icon and/or cause the two identical DateTimePickers to function the same way. |
|
|
|
You can close this issue now. |
|
Ee still face this problem but only in Mozilla Firefox 63 (64-bit) and Firefox 60.3.0 esr (32-bit), IE is ok here is the error from console window in Firefox After reloading the page, I can click on the Icon and the Datepicker appears. |
|
@halliballi123 : since it close since 3.4.x : i think you can report a new issue. Surely related to ajax-mode … |
|
Are you using a self built theme? |
|
You are right, I have a self built theme. That might cause the problem. but and where do I get this Moment.js? |
|
moment is part of the general packages. {"add":["pjax","font-noto","moment"]} you may leave out font-noto if you don't need it. |
|
moment is needed for expression ? No ? And if not : must create question_date package with this depend. |
|
Ok, I found moment-with-locales.min.js and I added the file in config.xml. Do I have to add the file somehow different? for Ajax? |
|
sorry, forget my last message (I sent it and your answers where already there) Thank you Markus. That was the solution for my problem!!! |
|
can I put that somehow into the config.xml? |
|
found it: inside <engine> tag |
|
Ok Great. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-02-08 19:52 | JamesHarrisHKI | New Issue | |
2018-02-09 17:25 | c_schmitz | Assigned To | => c_schmitz |
2018-02-09 17:25 | c_schmitz | Status | new => feedback |
2018-02-09 17:25 | c_schmitz | Note Added: 46374 | |
2018-02-09 17:33 | JamesHarrisHKI | Note Added: 46376 | |
2018-02-09 17:33 | JamesHarrisHKI | Status | feedback => assigned |
2018-02-09 17:35 | JamesHarrisHKI | File Added: survey_archive_114454.lsa | |
2018-02-09 17:35 | JamesHarrisHKI | Note Added: 46377 | |
2018-02-12 21:47 | JamesHarrisHKI | Note Added: 46404 | |
2018-02-13 10:26 | c_schmitz | Assigned To | c_schmitz => LouisGac |
2018-02-13 10:26 | c_schmitz | Priority | none => high |
2018-02-21 17:53 | JamesHarrisHKI | Note Added: 46710 | |
2018-03-01 16:28 | ollehar | Status | assigned => feedback |
2018-03-01 16:28 | ollehar | Note Added: 46853 | |
2018-03-01 16:28 | ollehar | Assigned To | LouisGac => ollehar |
2018-03-05 10:23 |
|
Assigned To | ollehar => markusfluer |
2018-03-05 10:23 |
|
Note Added: 46890 | |
2018-03-05 10:48 |
|
Note Added: 46891 | |
2018-03-05 11:05 |
|
Note Added: 46892 | |
2018-03-05 17:59 | JamesHarrisHKI | File Added: DateTime-2.png | |
2018-03-05 17:59 | JamesHarrisHKI | File Added: DateTime-1.png | |
2018-03-05 17:59 | JamesHarrisHKI | Note Added: 46904 | |
2018-03-05 17:59 | JamesHarrisHKI | Status | feedback => assigned |
2018-03-05 18:04 |
|
Note Added: 46905 | |
2018-03-05 18:06 | JamesHarrisHKI | Note Added: 46906 | |
2018-03-05 18:51 | JamesHarrisHKI | Note Added: 46911 | |
2018-03-05 18:51 | JamesHarrisHKI | Note Added: 46912 | |
2018-03-06 11:15 |
|
Status | assigned => closed |
2018-03-06 11:15 |
|
Resolution | open => fixed |
2018-03-06 11:15 |
|
Fixed in Version | => 3.4.x |
2018-10-29 15:45 | halliballi123 | Note Added: 49471 | |
2018-10-29 18:37 | DenisChenu | Note Added: 49474 | |
2018-10-30 10:49 |
|
Note Added: 49481 | |
2018-10-30 11:01 | halliballi123 | Note Added: 49482 | |
2018-10-30 11:10 |
|
Note Added: 49483 | |
2018-10-30 11:11 |
|
Note Edited: 49483 | |
2018-10-30 12:07 | DenisChenu | Note Added: 49485 | |
2018-10-30 12:08 | halliballi123 | Note Added: 49486 | |
2018-10-30 12:12 | halliballi123 | Note Added: 49487 | |
2018-10-30 12:24 | halliballi123 | Note Added: 49490 | |
2018-10-30 12:31 | halliballi123 | Note Added: 49491 | |
2018-10-30 14:03 | DenisChenu | Relationship added | related to 14194 |
2018-11-02 12:15 |
|
Note Added: 49514 |