Keyword

Close Modal-box on frontend after adding new material

More
13 years 11 months ago #89513 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

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

More
13 years 11 months ago #89514 by Belén M.
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.

  • ELEFTHERIOS MANOLIS
  • ELEFTHERIOS MANOLIS's Avatar
  • Offline
  • Junior Member
More
13 years 11 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

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

More
13 years 11 months ago #89516 by BFL
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....

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

More
13 years 5 months ago #89517 by rexkramer
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.


Powered by Kunena Forum