Forum
Calc Builder Support
Calc Builder supportForums
No se permite escribir sin estar logado. Por favor, login
Obtrusive dialog box after send email 04.11.2013 15:43
After results are generated, there is an option to send an email. After entering an email address and clicking send (the envelope button) a styled dialog box is generated. I assume that it is generated by JavaScript.
The issue is that the box has no text, so in some templates it's collapsed, and it has a close "X" button, a resize handle, a title bar, etc. Also it's z-order makes it appear under other elements.
Is there a way that we can use a system "OK" modal dialog box, such as is generated when an invalid email address is entered? For example, in the text field it could say "Email sent" with an OK button. Alternatively, a brief message could be inserted under the email address field, similar to how validation error messages appear.
Many thanks,
Alan
The issue is that the box has no text, so in some templates it's collapsed, and it has a close "X" button, a resize handle, a title bar, etc. Also it's z-order makes it appear under other elements.
Is there a way that we can use a system "OK" modal dialog box, such as is generated when an invalid email address is entered? For example, in the text field it could say "Email sent" with an OK button. Alternatively, a brief message could be inserted under the email address field, similar to how validation error messages appear.
Many thanks,
Alan
Re: Obtrusive dialog box after send email 04.11.2013 16:12
Hi,
that message dialog is a default jquery dialog, and its styled using ui-classes
ui-dialog
ui-widget
ui-widget-content
ui-corner-all
ui-front
ui-dialog-buttons
ui-draggable ui-resizable
that you can find here:
joomla/modules/mod_calcbuilder/assets/css/jquery-ui-1.9.2.custom.css
but if you see the dialog overlapping or with a different look, your template or any other css may be overwritting any property that could be adjusted.
The 'email not valid' message is a plain javascript
alert("message");
box instead. You could discard the function launching the dialog and print and alert message, if you want to give it a try, this is coded at
joomla\modules\mod_calcbuilder\tmpl\user.php
//line 291
if (data=='1') {
//your code here
}
Hope this helps, regards
Moonsoft Team
www.moonsoft.es
that message dialog is a default jquery dialog, and its styled using ui-classes
ui-dialog
ui-widget
ui-widget-content
ui-corner-all
ui-front
ui-dialog-buttons
ui-draggable ui-resizable
that you can find here:
joomla/modules/mod_calcbuilder/assets/css/jquery-ui-1.9.2.custom.css
but if you see the dialog overlapping or with a different look, your template or any other css may be overwritting any property that could be adjusted.
The 'email not valid' message is a plain javascript
alert("message");
box instead. You could discard the function launching the dialog and print and alert message, if you want to give it a try, this is coded at
joomla\modules\mod_calcbuilder\tmpl\user.php
//line 291
if (data=='1') {
//your code here
}
Hope this helps, regards
Moonsoft Team
www.moonsoft.es
Re: Obtrusive dialog box after send email 26.11.2013 04:34
I have a similar problem.
After email, the dialog box pops and is empty of dialog and does not close.
I am using A JoomlaArts template that does have a java Back To Top function, but there is no turn off for that function. I was able to comment it to a No Display in the CSS, but that did not help.
Any suggestions?
Here is a link
http://wedobooksforyou.com/index.php/contact-us-page/wedo-calculator
Mike
After email, the dialog box pops and is empty of dialog and does not close.
I am using A JoomlaArts template that does have a java Back To Top function, but there is no turn off for that function. I was able to comment it to a No Display in the CSS, but that did not help.
Any suggestions?
Here is a link
http://wedobooksforyou.com/index.php/contact-us-page/wedo-calculator
Mike
Re: Obtrusive dialog box after send email 26.11.2013 11:28
Hi,
if the dialog is conflicting with your template you can also try to change it for a plain alert message. Edit
joomla\modules\mod_calcbuilder\tmpl\user.php
and search about line 293:
CB(function() { CB( "#cb_error_modal" ).dialog({ modal: true, buttons: {Ok: function() {CB( this ).dialog( "close" );}}});});
replace that line for a simple js alert:
alert('');
You have another dialog (for error), a couple of lines below (296)
CB(function() { CB( "#cb_error_modal" ).dialog({ modal: true, buttons: {Ok: function() {CB( this ).dialog( "close" );}}});});
you can replace as well for:
alert('Your message');
So you won't have dialogs showing that may conflict with other scripts.
Hope this helps, regards
Moonsoft Team
www.moonsoft.es
if the dialog is conflicting with your template you can also try to change it for a plain alert message. Edit
joomla\modules\mod_calcbuilder\tmpl\user.php
and search about line 293:
CB(function() { CB( "#cb_error_modal" ).dialog({ modal: true, buttons: {Ok: function() {CB( this ).dialog( "close" );}}});});
replace that line for a simple js alert:
alert('');
You have another dialog (for error), a couple of lines below (296)
CB(function() { CB( "#cb_error_modal" ).dialog({ modal: true, buttons: {Ok: function() {CB( this ).dialog( "close" );}}});});
you can replace as well for:
alert('Your message');
So you won't have dialogs showing that may conflict with other scripts.
Hope this helps, regards
Moonsoft Team
www.moonsoft.es