You are here: Foswiki>Tasks Web>Item1240 (26 Sep 2016, MichaelDaum)Edit Attach

Item1240: Look at the possibility to use a nicer date picker

pencil
Priority: Enhancement
Current State: Proposal Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: JSCalendarContrib
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: MichaelDaum
Unobtrusive Date-Picker Widget V4

I would like to have a look if it is feasible to replace JSCalendarContrib with this picker.

That would also mean to replace current 'hardcoded' calls like:

CGI::image_button(
   -class   => 'editTableCalendarButton',
   -name    => 'calendar',
   -onclick => "return showCalendar('id$theName','$ifFormat')",
   -src     => Foswiki::Func::getPubUrlPath() . '/'
     . $Foswiki::cfg{SystemWebName}
     . '/JSCalendarContrib/img.gif',
   -alt   => 'Calendar',
   -align => 'middle'
);

by something more future proof. Start by actually using Foswiki::Contrib::JSCalendarContrib::renderDateForEdit.

-- ArthurClemens - 11 Mar 2009

See also Item14056 for suggested alternatives.

-- Main.GeorgeClark - 25 Sep 2016 - 19:24

We are already shipping jquery-ui which comes with a decent date picker. MoreFormfieldsPlugin provides a date2 formfield type, as well as a separate time picker and a time formfield. Only thing jquery-ui 's date picker is lacking is conversion of different time formats. But that is best served by JQMomentContrib basically.

-- MichaelDaum - 26 Sep 2016

Okay, let's no-action this one. It's ancient. Or is there an action here between this and Item14056 to deprecate JSCalenderContrib and change our defaults to use the new jquery-ui picker.

-- GeorgeClark - 26 Sep 2016

While jquery-ui datepicker is the way to go when deprecating JSCalenderContrib, it is not yet a 100% replacement. As is, it covers say 95% of all use cases. There are some config options and conversions part of jscalender that are not in jquery-ui datepicker. I.E. jscalender understands a lot more date formats for initial values than jquery-ui datepicker....something we probably need to port then. So "Proposal Required" is the right approach, which should then cover all features in jscalender that we'd like to preserve. The bits are there ...

-- MichaelDaum - 26 Sep 2016
 

ItemTemplate edit

Summary Look at the possibility to use a nicer date picker
ReportedBy ArthurClemens
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component JSCalendarContrib
Priority Enhancement
CurrentState Proposal Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r5 - 26 Sep 2016, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy