Contact Form View Message Popup

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/19/2015 2:20:02 PM
Gravatar
Total Posts 6

Contact Form View Message Popup

when I go to the contact us form and hit the view message link the windows that popup is very small. Where can I change this?

here is the link of an image of the error. https://www.dropbox.com/s/3flfjnbixhx6mg2/error.JPG?dl=0

2/19/2015 5:22:00 PM
Gravatar
Total Posts 1188
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Contact Form View Message Popup

The link is using ColorBox to render the "pop up" window, via the cblink CSS class. By default, the cblink class tells ColorBox to render as 85% height and width (you can see what it's set to by viewing your page source):

$('a.cblink').colorbox({width:'85%', height:'85%', iframe:true});

So my guess is that someone wanted a smaller ColorBox popup in another part of the site and overrode the cblink rendering globally (by using parameters on the ScriptLoader control in the Layout.Master of the skin).

So the first thing you should probably do is remove any ColorBox size overrides in Layout.master. Then, if you need a separate type of ColorBox link for specific purposes, do that by using a different CSS class and corresponding ColorBox initialization in Layout.Master. I've used this technique for custom features where I want an informational ColorBox popup to tailor itself to the content size, which is the default behavior. For example:

<script type="text/javascript" >$('a.cbinfolink').colorbox();</script>

I hope that helps,
Jamie
 

You must sign in to post in the forums. This thread is closed to new posts.