1. peacetree
  2. Bug Report
  3. Tuesday, November 08 2016, 01:31 PM
The birthday field can have a default value. When the user opens the calander it will open at the current date not at the default value.
admin Accepted Answer
Admin
you can set default value in date field options. Of course default value will works only at registration page.
  1. more than a month ago
  2. Bug Report
  3. # 1
peacetree Accepted Answer
yes it works BUT when you click on the calendar it opens at the current date.

example: dafult value is set in January 01 1990 and the date is displayed on the text field when you click on the calender icon it starts at 08.11.2016.
  1. more than a month ago
  2. Bug Report
  3. # 2
admin Accepted Answer
Admin
Hi,
you have right, to fix this replace in file /administrator/components/com_jsn/models/fields/date.php at line 106 this

$this->value

with

$value


so line become:

return '<div'.$date_weekstart.' data-date-viewmode="'.$this->element['viewmode'].'" data-date-format="'.$format.'" data-date="'.$value.'" id="wrapper'.$this->id.'" class="input-prepend date bsdate">'.($readonly ? '' : '<span class="btn btn-success"><i class="jsn-icon jsn-icon-calendar"></i></span><span class="btn btn-danger"><i class="jsn-icon jsn-icon-remove jsndateremove"></i></span>').'<input type="text" readonly="readonly" value="'.$value.'" placeholder="'.JText::_($this->element['hint']).'"/>'.parent::getInput().'</div>';


We will fix this in next release, thanks for report it ;)
  1. more than a month ago
  2. Bug Report
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.