- Posts: 5
COMMUNITY FORUM
Close Modal-box on frontend after adding new material
- BFL
-
Topic Author
- Offline
- New Member
Less
More
14 years 6 months ago #89513
by BFL
Close Modal-box on frontend after adding new material was created by BFL
Hi!
I want to ask you how to close modal box after adding a material in K2? Or how to make new message box, that says that material is unpublished? Users can't understand when after adding new material modal-box doesn't closed. That looks-like something wrong for them...
Thank you!
BFL
I want to ask you how to close modal box after adding a material in K2? Or how to make new message box, that says that material is unpublished? Users can't understand when after adding new material modal-box doesn't closed. That looks-like something wrong for them...
Thank you!
BFL
Please Log in or Create an account to join the conversation.
- Belén M.
-
- Offline
- New Member
Less
More
- Posts: 16
14 years 6 months ago #89514
by Belén M.
Replied by Belén M. on topic Close Modal-box on frontend after adding new material
I'm interested in this too. I'd like to know if it is possible to redirect users to a new message/page with a custom message.
Thanks and regards
Thanks and regards
Please Log in or Create an account to join the conversation.
- ELEFTHERIOS MANOLIS
-
- Offline
- Junior Member
Less
More
- Posts: 28
14 years 6 months ago #89515
by ELEFTHERIOS MANOLIS
Replied by ELEFTHERIOS MANOLIS on topic Close Modal-box on frontend after adding new material
I'm interested in this too
Belén M. said:I'm interested in this too. I'd like to know if it is possible to redirect users to a new message/page with a custom message.
Thanks and regards
Belén M. said:I'm interested in this too. I'd like to know if it is possible to redirect users to a new message/page with a custom message.
Thanks and regards
Please Log in or Create an account to join the conversation.
- BFL
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
14 years 6 months ago #89516
by BFL
Replied by BFL on topic Close Modal-box on frontend after adding new material
Something to discover:
components/com_k2/views/item/tmpl/form.php
After string 35: "submitform( pressbutton );"
You can add:
36: parent.$('sbox-window').close(); /* To close modalbox */
37: alert( ' Send ! ' ); /* To view a message */
That isn't a best decision, but that is only way i can found....
components/com_k2/views/item/tmpl/form.php
After string 35: "submitform( pressbutton );"
You can add:
36: parent.$('sbox-window').close(); /* To close modalbox */
37: alert( ' Send ! ' ); /* To view a message */
That isn't a best decision, but that is only way i can found....
Please Log in or Create an account to join the conversation.
- rexkramer
-
- Offline
- Senior Member
Less
More
- Posts: 71
14 years 2 weeks ago #89517
by rexkramer
Replied by rexkramer on topic Close Modal-box on frontend after adding new material
I remember i thought of that in Save & Close in Feb 2010. This is a crucial usability feature. I keep my fingers crossed, and hope for changes in the new K2.5+ releases.
Please Log in or Create an account to join the conversation.