Edgewall Software
Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#11436 closed enhancement (fixed)

Add datepickers to relative time fields on the Query page

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.1.2
Component: query system Version:
Severity: normal Keywords: jqueryui datepicker
Cc: Branch:
Release Notes:

Added datepickers to time fields with the Relative format on the Query page. This change restores datepickers to the Created and Modified fields.

API Changes:

Description

Adding datepickers for relative time fields on the query page will restore them to the created and modified fields, as mentioned in comment:80:ticket:1942 and comment:88:ticket:1942. On 1.0-stable the created and modified fields have datepickers.

Attachments (0)

Change History (3)

comment:1 by Ryan J Ollos, 6 years ago

Component: generalquery system
Milestone: next-dev-1.1.x1.1.2
Release Notes: modified (diff)
Resolution: fixed
Status: newclosed

Committed to trunk in [12423].

comment:2 by Ryan J Ollos, 6 years ago

Now that I think about this more, I don't think it makes sense to add a datepicker to batch input fields with format Relative. I think it only make sense to add a datepicker when there is a pair of input fields like the Query filters provide.

  • trac/htdocs/js/query.js

    diff --git a/trac/htdocs/js/query.js b/trac/htdocs/js/query.js
    index cabd83c..dfe4ea1 100644
    a b  
    333333          focusElement = createText(inputName, 42).addClass("time");
    334334          if (property.format == "datetime") {
    335335            focusElement.datetimepicker();
    336           } else if (property.format == "date" ||
    337                      property.format == "relative") {
     336          } else if (property.format == "date") {
    338337            focusElement.datepicker();
    339338          }
    340339          td.append(focusElement);

comment:3 by Ryan J Ollos, 6 years ago

Changes in comment:2 committed to trunk in [12424].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.