Foren

Disable resize capability from modal login

thumbnail
Arthur Marinho, geändert vor 7 Jahren.

Disable resize capability from modal login

New Member Beiträge: 24 Beitrittsdatum: 13.01.15 Neueste Beiträge
Hello everybody.

I'm using liferay modal login to log my users in and want to disable the resize functionality from this modal.
I looked in the documentation and couldn't find any method or property in JS to change this.

Does anyone know how to do it?
thumbnail
Kailash Yadav, geändert vor 7 Jahren.

RE: Disable resize capability from modal login

Regular Member Beiträge: 211 Beitrittsdatum: 18.10.11 Neueste Beiträge
If you are using Liferay.SignInModal to open sign-in model, you can hook sign_in_modal.js and add resizable: false in dialog section.
thumbnail
Arthur Marinho, geändert vor 7 Jahren.

RE: Disable resize capability from modal login

New Member Beiträge: 24 Beitrittsdatum: 13.01.15 Neueste Beiträge
Hi Kailash thanks for the answer.

I'm familiar with hooking jsps, but how can I hook js? where do I put it?

Thanks again.
thumbnail
Kailash Yadav, geändert vor 7 Jahren.

RE: Disable resize capability from modal login

Regular Member Beiträge: 211 Beitrittsdatum: 18.10.11 Neueste Beiträge
Same like JSP hook. See Olaf's comment http://stackoverflow.com/a/6587280