background-image: url("../packages/jquery/css/images/pbar-ani.gif");
}
-div.ui-dialog {
+.crm-container.ui-dialog {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}
-.ui-dialog-titlebar.ui-widget-header {
+.crm-container .ui-dialog-titlebar.ui-widget-header {
background: url("../i/crm-button-bg.gif") repeat-x scroll left center #70716B;
color: white;
}
})
// Modal dialogs should disable scrollbars
.on('dialogopen', function(e) {
+ $(e.target).parent().addClass('crm-container');
if ($(e.target).dialog('option', 'modal')) {
$(e.target).addClass('modal-dialog');
$('body').css({overflow: 'hidden'});
}
};
});
- dialog = $('<div class="crm-container crm-confirm-dialog"></div>')
+ dialog = $('<div class="crm-confirm-dialog"></div>')
.html(options.message)
.dialog(settings)
.trigger('crmLoad');
// bind the event for image popup
$('body')
.on('click', 'a.crm-image-popup', function() {
- var o = $('<div class="crm-container crm-custom-image-popup"><img src=' + $(this).attr('href') + '></div>');
+ var o = $('<div class="crm-custom-image-popup"><img src=' + $(this).attr('href') + '></div>');
CRM.confirm('',
{
current_status_id = $(this).attr('current_status'),
caseId = $(this).attr('case_id'),
data = 'snippet=1&reset=1',
- $el = $('<div class="crm-container crm-activity_change_status"></div>');
+ $el = $('<div class="crm-activity_change_status"></div>');
$el.block({theme:true});
$el.load(CRM.url('civicrm/case/changeactivitystatus'), data, function() {
cj("#dialog").dialog({
title: "Assign Case Role",
modal: true,
- bgiframe: true,
close: function(event, ui) { cj("#rel_contact").unautocomplete( ); },
- overlay: {
- opacity: 0.5,
- background: "black"
- },
-
open:function() {
/* set defaults if editing */
cj("#rel_contact").val("");
cj("#addRoleDialog").dialog({
title: "Add Role",
modal: true,
- bgiframe: true,
close: function(event, ui) { cj("#role_contact").unautocomplete( ); },
- overlay: {
- opacity: 0.5,
- background: "black"
- },
-
open:function() {
/* set defaults if editing */
cj("#role_contact").val( "" );
width : 350,
height : 160,
resizable : false,
- bgiframe : true,
draggable : true,
closeOnEscape : false,
- overlay : { opacity: 0.5, background: "black" },
open : function ( ) {
cj("#id-processing").dialog().parents(".ui-dialog").find(".ui-dialog-titlebar").remove();
}
cj("#Email_Block_" + blockId + "_signature").dialog({
title: "Signature",
modal: true,
- bgiframe: true,
width: 900,
height: 500,
- overlay: {
- opacity: 0.5,
- background: "black"
- },
-
beforeclose: function(event, ui) {
cj(this).dialog("destroy");
},
- open:function() {
- },
-
- buttons: {
+ buttons: {
"Done": function() {
cj(this).dialog("destroy");
}
width : 290,
height : 290,
resizable : true,
- bgiframe : true,
- overlay : { opacity: 0.5, background: "black" },
beforeclose : function(event, ui) {
cj(this).dialog("destroy");
}
$("#enableDisableStatusMsg").dialog({
title: {/literal}'{ts escape="js"}Confirm Changes{/ts}'{literal},
modal: true,
- bgiframe: true,
- position: "center",
- overlay: {
- opacity: 0.5,
- background: "black"
- },
open:function() {
switch (op) {{/literal}
case 'reopen':
cj("#enableDisableStatusMsg").dialog({
title: {/literal}'{ts escape="js"}Close Batch{/ts}'{literal},
modal: true,
- bgiframe: true,
- overlay: {
- opacity: 0.5,
- background: "black"
- },
open:function() {
if (op == 'close') {
var msg = {/literal}'{ts escape="js"}Are you sure you want to close this batch?{/ts}'{literal};
cj("#casedetails").dialog({
title: "Case Details",
modal: true,
- bgiframe: true,
width : 700,
height: 400,
- overlay: {
- opacity: 0.5,
- background: "black"
- },
open:function() {
var dataUrl = {/literal}"{crmURL p='civicrm/case/ajax/details' h=0 q="snippet=4" }"{literal};
dataUrl = dataUrl + '&caseId=' +caseId + '&contactId=' +contactId ;
cj("#processDupes").dialog({
title: title,
modal: true,
- bgiframe: true,
- overlay: {
- opacity: 0.5,
- background: "black"
- },
open:function() {
cj( '#processDupes' ).show( ).html( msg );