Keyword

front end form close button is not working

  • Michael Green
  • Michael Green's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago #141676 by Michael Green
front end form close button is not working was created by Michael Green
Hello,my front end form close button is not working in some instances and i believe its a javascript issue and im not all that good at java script. a little guidance would be great...
My findings are..
1... saving new or preexisting item seems to work well
2...close button seems to work ok when i open a pre existing item via front end
3..closing a new item via...(frontend form menu link) will not close..
4. Im noticing when i click close the browser url changes from ......[mywebsite.com/k2-edit] to......[mywebsite.com/k2-edit#] ....it adds the (#) sign at the end and will not respond....(not sure if this is normal)
6....getting this error from browser java console...( Uncaught TypeError: Cannot read property 'removeEvents' of null)

...any ideas how to resolve this?

thanks for all of your help...

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #141702 by Krikor Boghossian
Replied by Krikor Boghossian on topic front end form close button is not working
I tried to edit the yoursite .com/night-life/item/43-street-racing-event

And the form closed without an issue.
I got a js error however which was related to a 3rd party extension - the carousel.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Michael Green
  • Michael Green's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago - 9 years 1 month ago #141747 by Michael Green
Replied by Michael Green on topic front end form close button is not working
Hey thanks for checking it out...I knew about the js error with the carousel and thanks for mentioning it....but let me be a little more clear...
It does work most times....editing an item does seem to work ok...its when i am in the form via new form menu link...and i try to close it...it will not respond..it instead displays a # sign at the end of the url...
could you please try this link
mywebsite.com/k2-edit and then do not save it...just close it ...it will not close...instead it adds a pound sign at the end of the link.
Last edit: 9 years 1 month ago by Michael Green.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #141758 by Krikor Boghossian
Replied by Krikor Boghossian on topic front end form close button is not working
Yes I can see the issue now,

Go this URL github.com/joomlaworks/k2/blob/master/media/k2/assets/js/k2.js

Copy this .js file and replace the /media/k2/assets/js/k2.js on your site.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Michael Green
  • Michael Green's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago #141797 by Michael Green
Replied by Michael Green on topic front end form close button is not working
Sorry for my delay i was trouble shooting another issue with another software i will try it and get right back..thanks again

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

  • Michael Green
  • Michael Green's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago #141799 by Michael Green
Replied by Michael Green on topic front end form close button is not working
that did not work at all...any idea what that means? thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #141834 by Krikor Boghossian
Replied by Krikor Boghossian on topic front end form close button is not working
I can still see the old file at: media/k2/assets/js/k2.js?v=2.6.9&sitepath=/

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Michael Green
  • Michael Green's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago #141852 by Michael Green
Replied by Michael Green on topic front end form close button is not working
thanks again...sorry i reverted it back to original...forgot you were checking the link..
I have went back in and changed the k2.js file back to the file that you had given me..so if you get a chance could you check now..i will leave it there until you tell me otherwise...thanks again.
also ..and im not sure it its related but the buttons at the bottom of the article/content window are broken...they show up in the backed admin area but not via frontend editing form....heres and example
imgur.com/W4hKINm

thanks i will await your reply..

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

  • Michael Green
  • Michael Green's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 1 month ago - 9 years 1 month ago #141861 by Michael Green
Replied by Michael Green on topic front end form close button is not working
Im sorry but that js patch you gave me broke my k2 ....It would not longer save at all on the front end and the back end...
The tabs..for example...content/image/gallery/media/attachments were all broken out of the template and displayed under the content area one after another as opposed to being contained in the tabs...
I was very worried because after i went and reverted the js file back to the original....it still was broken...until i decided to clear the cache ..which seemed to return it to its original state...
Im not sure if this issue is better left alone as it is or if k2 is very unstable on my environment.
Also my article plugins such as simiple image gallery/image under the content area is broken as well and will not display buttons it just shows as text on top of one another without buttons...this was present as well before and after the patch you sent..
So i reverted it back to its original js file
Are you sure it was the missing semicolons that was causing my frontend close button to close or if it was something else? any idea whats wrong?
Last edit: 9 years 1 month ago by Michael Green. Reason: additional info

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #141884 by Krikor Boghossian
Replied by Krikor Boghossian on topic front end form close button is not working
The semicolons or lack of, where causing an issue on J! 3.4 multilingual sites.

To manually patch the K2 file copy this snippet
if(parent.$('sbox-overlay') != undefined) {
            		 parent.$('sbox-overlay').removeEvents('click');
            	}
            	if(parent.$('sbox-btn-close') != undefined) {
            		 parent.$('sbox-btn-close').removeEvents('click');
            	}

and paste ti over:
parent.$('sbox-overlay').removeEvents('click');
                parent.$('sbox-btn-close').removeEvents('click');

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum