Where Did this Dialog Come From?

Permalink
I just transferred my site to a publicly accessible testing server, and a help dialog appears on one page (see attached). This is the first time I've ever seen that dialogue, and it does not appear on my local test site; nor does it appear on any other page. So my question is, where did it come from, and more importantly, how do I control it/get rid of it?

BTW, when I click the help link on that dialog, a page fragment appears. It seems just the inner content is being output instead of being wrapped in my view.php.

Any ideas?

-Steve

1 Attachment

Shotster
 
Mnkras replied on at Permalink Reply
Mnkras
that isn't a concrete5 dialog, it looks like a jquery ui dialog, check your theme and any custom blocks
cherrycake replied on at Permalink Reply
cherrycake
This happens because there is a conflict with jquery ui's dialog widget.

Usually the reason being that you've included your own jquery ui js/css with the dialog widget that's overriding the concrete5 one.

You can get around it by excluding the dialog widget.
Shotster replied on at Permalink Reply
Shotster
Thanks for the responses! A jQuery conflict is likely the cause, although I'm a bit puzzled as to why a dialog (any dialog) is appearing there. Anyway, I'll check into it.

Thanks,

-Steve
JohntheFish replied on at Permalink Reply
JohntheFish
Digging up an old thread...

I am getting a very similar effect when trying to popup a dialog using the c5 dialog method in a block view (C5.5.1).

When the C5 menu bar is showing, I get the C5 dialog.

When the C5 menu bar is not showing, I get something like what you are getting.

I had already guessed this was a failure to intercept the jQuery.ui dialog and replace it with the C5 version. However, I need some ideas on what script to include/run in order to get the C5 dialog.
JohntheFish replied on at Permalink Reply
JohntheFish
Looks like adding as below, in the specific order, solves it:
$html = Loader::helper('html');            
$this->addHeaderItem($html->javascript("jquery.js"));
$this->addHeaderItem($html->css("jquery.ui.css"));
$this->addHeaderItem($html->css("ccm.app.css"));
$this->addHeaderItem($html->javascript("jquery.ui.js"));
$this->addHeaderItem($html->javascript("ccm.app.js"));
ScottC replied on at Permalink Reply
ScottC
John,

did you need this one:

$this->addHeaderItem($html->javascript("jquery.ui.js"));


can you try it without it?

Thank you John.

-Scott
JohntheFish replied on at Permalink Reply
JohntheFish
On previous versions of C5 probably not. But now the C5 dialog is built as a wrapper about the jquery.ui dialog. I just tested it with that line commented out and get script errors about dialog not defined.

My problem has moved on.

I have used the dialog to pop up a C5 file manager directly from the front end.

I have started a new thread about that athttp://www.concrete5.org/community/forums/customizing_c5/using-the-...