- Posts: 32
COMMUNITY FORUM
Add a redirect on save button in front end editing
- Santana Moll
-
Topic Author
- Offline
- Junior Member
Less
More
14 years 10 months ago #84672
by Santana Moll
Add a redirect on save button in front end editing was created by Santana Moll
Hi there, I've disabled lightbox front end editor, it's now in a normal
browser window. So now I want to ad a extra button to leave this editing
or add item page or I want to ad a redirect to the save button. As a replacement button for the close lightbox "x".
Does someone have a clue, where to edit or find the pages and files to
edit?
Thanks in advance!
Greetings from Santana
browser window. So now I want to ad a extra button to leave this editing
or add item page or I want to ad a redirect to the save button. As a replacement button for the close lightbox "x".
Does someone have a clue, where to edit or find the pages and files to
edit?
Thanks in advance!
Greetings from Santana
Please Log in or Create an account to join the conversation.
- Bernard R.
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 5 months ago #84673
by Bernard R.
Replied by Bernard R. on topic Add a redirect on save button in front end editing
POSSIBLE FIX FOR SAVE AND CLOSE BUTTON.
Not sure if this would work with everyone. It worked like a charm on my site.
(REMEMBER TO BACKUP YOUR FORM.PHP FILE BEFORE PROCEEDING WITH THIS FIX)
I added the following line of code to line 36 on form.php (located: components/com_k2_views/item/tmpl)
parent.$('sbox-window').close();
Not sure if this would work with everyone. It worked like a charm on my site.
(REMEMBER TO BACKUP YOUR FORM.PHP FILE BEFORE PROCEEDING WITH THIS FIX)
I added the following line of code to line 36 on form.php (located: components/com_k2_views/item/tmpl)
parent.$('sbox-window').close();
Please Log in or Create an account to join the conversation.
- Jeff Kitterman
-
- Offline
- New Member
Less
More
- Posts: 8
14 years 2 months ago #84674
by Jeff Kitterman
Replied by Jeff Kitterman on topic Add a redirect on save button in front end editing
This is great. Thanks. Is it possible to refresh the page as well, so that changes are reflected immediately upon saving? I'd like to avoid having to tell folks to refresh their browser window.
Bernard R. said:
POSSIBLE FIX FOR SAVE AND CLOSE BUTTON.
Not sure if this would work with everyone. It worked like a charm on my site.
(REMEMBER TO BACKUP YOUR FORM.PHP FILE BEFORE PROCEEDING WITH THIS FIX)
I added the following line of code to line 36 on form.php (located: components/com_k2_views/item/tmpl)
parent.$('sbox-window').close();
Bernard R. said:
POSSIBLE FIX FOR SAVE AND CLOSE BUTTON.
Not sure if this would work with everyone. It worked like a charm on my site.
(REMEMBER TO BACKUP YOUR FORM.PHP FILE BEFORE PROCEEDING WITH THIS FIX)
I added the following line of code to line 36 on form.php (located: components/com_k2_views/item/tmpl)
parent.$('sbox-window').close();
Please Log in or Create an account to join the conversation.
- McGreg
-
- Offline
- New Member
Less
More
- Posts: 11
14 years 1 month ago #84675
by McGreg
Replied by McGreg on topic Add a redirect on save button in front end editing
@Bernard, thanks a lot work great, I have only a question? Caw you can redirect after close to item view? so every one can look on their items?
Please Log in or Create an account to join the conversation.