- Posts: 11
COMMUNITY FORUM
Frontend editing cancel (Joomla! v3.2 - K2 v2.6.7)
- Derk
-
Topic Author
- Offline
- New Member
On the frontend, when using the item editor there's a problem,
the cancel button (Annuleren in Dutch) does not work.
I might have found the place in the HTML code:
Actual code, Joomla! v3.2 - K2 v2.6.7
<tr>
<td class="button" id="toolbar-save">
<a onclick="Joomla.submitbutton('save'); return false;" href="#" class="toolbar">
<span class="icon-32-save icon-save" title="Opslaan"></span> Opslaan </a>
</td>
<td class="button" id="toolbar-cancel">
<a href="#" class="toolbar">
<span class="icon-32-cancel icon-cancel" title="Annuleren"></span> Sluiten </a>
</td>
</tr>
Change this line:
<a href="#" class="toolbar">
To:
<a onclick="Joomla.submitbutton('cancel');" href="#" class="toolbar">
I still have to figure out what to change in the K2 (php?) file.
Maybe a developer for the K2 project can help? I don't know if my solution
is correct (for example, do I need to add return true or false???)
Thank you in advance for your time and effort!!!
Derk
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
When the item page is loaded through the frontend editing window do you notice anything else breaking, like maybe the tabs?
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
I disabled all modules active on the page,
that does not help...
The JQeury, I've no idea, but tried to disable jquery in the K2 parameters
that makes no difference...
I can send you a private message with login information?
Thank you very much!!!
Derk
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Also if you are using K2 template overrides make sure that the itemform.php has no changes between your own and the one inside the component's folder.
Question: What Joomla! and K2 version do you use?
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
My joomla version is 3.2, my K2 version is now the svn, but maybe it's better to
get back to v2.6.7 (same problem, tried the svn to fix it, no succes...).
Which version of JQuery should I use, and where can I download it?
Just put the download in the /media/jui/js folder?
Derk
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Then check again.
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
code.jquery.com/jquery-1.10.2.min.map
and also:
code.jquery.com/jquery-1.10.2.js
and put them in the /media/jui/js on my site.
That does not solve the problem.
Maybe it's something in the html generated? Adding:
Joomla.submitbutton('cancel');
makes it possible to close the frontend editor window...
---
<a class="toolbar" href="#" onclick="Joomla.submitbutton('cancel');">
<span title="
---
Edit: the striked lines were from the save button, I meant ofcourse the cancel button...
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
and on that site the cancel button works fine, so it's not a html problem probably...
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
I tried the Protostar template, this results in a different button 'cancel' and
works as expected.
I placed the modified k2.css in my Beez3 css folder, I will try to put the css
into the protostar css folder and check again if it works.
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
using the Beez3 template, the problem is still there.
No working frontend editing cancel button...
With this information you can reproduce the site that's not working,
I can also make a copy on an empty webdir from my hosting provider
and send you a personal message with login info.
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
the problem only happens with the beez3 template.
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
that's why I made a clean site where people can try and fix stuff.
This is a Joomla! v3.2 site, set to the default Beez3 template.
K2 v2.6.7 installed.
All clean, not modified!!!
The close button in the frontend editor of K2 does not work.
Usernames and passwords are: getk2
(for example, the admin account: login: getk2 / password: getk2)
file/folder rights are set to 777.
The actual site:
getk2.datact.nl/
getk2.datact.nl/administrator
The site will stay here as long as needed or not abused.
please do not abuse my site, I do not give permission to use it for illegal stuff!
A big thank you in advance!
Derk
Please Log in or Create an account to join the conversation.
- seeker
-
- Offline
- New Member
- Posts: 18
any help?
any new k2 version?
thanks
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
@seeker
What template do you use?
Check for javascript conflicts in the frontend.
Please Log in or Create an account to join the conversation.
- Derk
-
Topic Author
- Offline
- New Member
- Posts: 11
but I still cannot exactly figure out why.
I hope someone can help seeker and me!
Please Log in or Create an account to join the conversation.
- seeker
-
- Offline
- New Member
- Posts: 18
I dont know check for javascript conflicts in the frontend.
Please Log in or Create an account to join the conversation.