View Single Post
  #3  
Old 04-24-2021, 06:41 AM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default Re: Date pikcer with arrows for previous/next year

Quote:
Originally Posted by Ed B.
I have found a work-around, it "suffices" to add a line
Code:
changeYear: true,
after

Code:
$el.datepicker({
to skins/admin/form_model/type/datepicker_type.js (in the case of 5.4.1.x). Now, how can I achieve this "correctly", without creating a whole skin? I can't figure out which class is calling this file. \XLite\View\FormField\Input\Text\Date only says
Code:
public function getCommonFiles() { $list = parent::getCommonFiles(); $list[static::RESOURCE_JS][] = 'js/jquery-ui-i18n.min.js'; $list[static::RESOURCE_JS][] = 'form_field/js/date.js'; $list[static::RESOURCE_CSS][] = 'form_field/css/date.less'; return $list; }
no mention of datepicer_type.js


In the current version, it is skins/common/form_field/js/date.js that I have to change...
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote