Keyword

Add a redirect on save button in front end editing

  • Santana Moll
  • Santana Moll's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 3 months ago #84672 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

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

More
13 years 10 months ago #84673 by Bernard R.
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.

More
13 years 7 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();

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

More
13 years 6 months ago #84675 by McGreg
@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.


Powered by Kunena Forum