Keyword

Extra field "Date" - problem with calendar button

  • dswiss
  • dswiss's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 weeks ago #117871 by dswiss
I have set up on K2 an extra date field. When Ι enter an item and fill out the extra date field creates a problem.

When I want to choose a date I press the calendar button and everything is working properly. But when Ι first change the category of the item and then press the calendar button then becomes reloading, thus losing that I write. This only happens when I change the category of the item and then choose the date.
This happen in BACK END.

Is that a bug? If so, is there a solution?

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 4 weeks ago #117872 by Yiota
What Joomla! and K2 versions do you use?

Please Log in or Create an account to join the conversation.

  • dswiss
  • dswiss's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 weeks ago #117873 by dswiss
Hi,

K2 v2.6.7 and Joomla! version 3.1.1

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #117874 by Falcon
Yea !! This problem do exist in my situation, only if the category is pre-selected . Any solution about it, please share it !! Urgent need. thanks !!

My version as follow:
K2 v2.6.7 and Joomla! version 3.1.5

Please Log in or Create an account to join the conversation.

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 3 weeks ago #117875 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Extra field "Date" - problem with calendar button
I found this problem in a project for one of my clients, and I remember that I fixed it with hacking a Joomla file.
I will look for the fix and write it here.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

Please Log in or Create an account to join the conversation.

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 3 weeks ago #117876 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Extra field "Date" - problem with calendar button
Hi,

I found the workaround that fixed this problem for my client:

Edit the file: libraries/joomla/html/html.php

Go to the line ~883 and find this line:
'window.addEvent(\'domready\', function() {Calendar.setup({

And replace it with this line:
'window.addEvent(\'load\', function() {Calendar.setup({

Save the file and test.

Hope this solves the problem for you.

I hope also that K2 developers find a solution to this problem

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

Please Log in or Create an account to join the conversation.

  • dswiss
  • dswiss's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 weeks ago #117877 by dswiss
Ηι Mohamed,

I tried the solution you gave but unfortunately the problem remains! thank you for your help!

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #117878 by Falcon
My Joomla version is 3.1.5, do not have specific path, could you tell me what classes is that? And then that is Joomla core library, I think K2 can't change anything. I think the solution should make it at K2 files..

Please Log in or Create an account to join the conversation.

More
11 years 1 week ago #117879 by Francisco Saballos
Replied by Francisco Saballos on topic Re: Extra field "Date" - problem with calendar button
Hey men, the path is: libraries/cms/html/html.php

Please Log in or Create an account to join the conversation.

More
11 years 1 week ago #117880 by Falcon
already change, but not working also.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum