? ? Pending

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
8 Mar 2017

Pull Request for Issue # .

Summary of Changes

  • CS
  • Fix the submit binding to work for Persian calendar (basically for all calendars)
  • Refactor the buttons on the bottom so they're not part of the table for easier customisation/styling

screen shot 2017-03-08 at 20 15 37

Testing Instructions

Apply the patch and play with the calendar, everything should still work

@infograf768 @coolcat-creations @ghasemy50 please test!

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar dgt41 dgt41 - open - 8 Mar 2017
avatar dgt41 dgt41 - change - 8 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Mar 2017
Category JavaScript
avatar dgt41 dgt41 - change - 8 Mar 2017
Labels Added: ?
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Mar 2017

Article, Tab "Publishing", "Start Publishing": Click on a new Date got no Reaction, also on Buttons on Bottom no Reactopn after Click on them (only on "Close" is Reaction).

avatar dgt41
dgt41 - comment - 8 Mar 2017

Buttons: clear just clears the input and today sets the input to today, so only close does close the calendar!
Do you have any error on you console?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Mar 2017

Click on another Day: TypeError: a.srcElement is undefined

6838064 8 Mar 2017 avatar dgt41 Grrr
15f1ca4 8 Mar 2017 avatar dgt41 oops
avatar dgt41
dgt41 - comment - 8 Mar 2017

@franz-wohlkoenig should be fine now...

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 8 Mar 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Mar 2017

I have tested this item successfully on 15f1ca4

Test on Articles-Published and Field-Caöendar.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14422.

avatar dgt41
dgt41 - comment - 8 Mar 2017

@yvesh help!

avatar ghasemy50
ghasemy50 - comment - 8 Mar 2017

hi,
it's ok.
just in persian language ,'fa-ir.js' file in \media\system\js\fields\calendar-locales have a bad translate.
exit parameter is translated to 'ستن' , good translate is 'بستن'. please solve it thank you.

avatar infograf768 infograf768 - test_item - 9 Mar 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 9 Mar 2017

I have tested this item successfully on 15f1ca4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14422.

avatar infograf768 infograf768 - change - 9 Mar 2017
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 9 Mar 2017

RTC. Thanks


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14422.

avatar infograf768
infograf768 - comment - 9 Mar 2017

@ghasemy50
See #14428 for the calendar-locale correction

avatar coolcat-creations coolcat-creations - test_item - 9 Mar 2017 - Tested unsuccessfully
avatar coolcat-creations
coolcat-creations - comment - 9 Mar 2017

I have tested this item ? unsuccessfully on 15f1ca4

German string is still cut off - but Design improved once more.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14422.
avatar coolcat-creations
coolcat-creations - comment - 9 Mar 2017

image

avatar dgt41
dgt41 - comment - 9 Mar 2017

@coolcat-creations do you mean the time sting? This is part of the table and thus got less space

avatar infograf768
infograf768 - comment - 9 Mar 2017

@coolcat-creations
Could German use "Zeit" instead ?
We do have 'very' limited space there.

avatar coolcat-creations
coolcat-creations - comment - 9 Mar 2017

@infograf768 yes German could. But: what for croatian "Vrijeme", greek χρόνος, Vietnamese:Thời gian ?

avatar Bakual
Bakual - comment - 9 Mar 2017

Why do we have limited space? There is whitespace right of the time dropdowns.
I'm sure that could be solved.

avatar chmst
chmst - comment - 9 Mar 2017

I suggest an icon clock.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14422.

avatar wilsonge wilsonge - close - 9 Mar 2017
avatar wilsonge wilsonge - merge - 9 Mar 2017
avatar wilsonge wilsonge - change - 9 Mar 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-03-09 13:38:55
Closed_By wilsonge
Labels Added: ?
avatar wilsonge
wilsonge - comment - 9 Mar 2017

Given this is better, i'm going to merge this now and let's keep incrementing :)

avatar yvesh
yvesh - comment - 9 Mar 2017

@wilsonge No we have to fix the JavaScript tests ASAP, because this PR broke them :-/

avatar infograf768
infograf768 - comment - 9 Mar 2017

Why do we have limited space? There is whitespace right of the time dropdowns.
I'm sure that could be solved.

@Bakual
Not really, the 'empty' whitespace is for AM-PM when implemented

avatar infograf768
infograf768 - comment - 9 Mar 2017

The AM/PM will display when calendar field contains
timeformat="12"
screen shot 2017-03-09 at 17 34 12

avatar coolcat-creations
coolcat-creations - comment - 9 Mar 2017

+1 then for changing the string into a clock icon and
+1 for adding timeformat parameter into the custom field

avatar Bakual
Bakual - comment - 9 Mar 2017

+1 for adding timeformat parameter into the custom field

Depends a bit if that is more a language specific thing. eg if in UK they prefer 24hr and in Germany 12hr it would make more sense to put that setting into the language pack.

avatar infograf768
infograf768 - comment - 9 Mar 2017

the important to consider is not in the calendar imho, but the resulting display. the strings already exist in the core packs. adding a A after the hour will display am/pm

avatar infograf768
infograf768 - comment - 10 Mar 2017

Example:
DATE_FORMAT_LC3="j F Y H:i:s A"

avatar infograf768
infograf768 - comment - 10 Mar 2017

@dgt41

By changing
cell.innerHTML = JoomlaCalLocale.time || " ";
to
cell.innerHTML = "<span class='icon-clock'> </span>";

I can get a clock

screen shot 2017-03-10 at 10 11 19

What do you think? This would indeed solve that issue.

(I would not touch at the time parameter in the code and locale and just leave it there as is. Just change the display to the clock)

avatar infograf768
infograf768 - comment - 11 Mar 2017

Please test
#14484

Add a Comment

Login with GitHub to post a comment