View Single Post
  #2  
Old 12-25-2020, 02:15 AM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 409
 

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

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
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote