validate: true,
refreshAction: ['next_new', 'submit_savenext'],
cancelButton: '.cancel.form-submit',
- openInline: 'a.button:not("[href=#], .no-popup")',
+ openInline: 'a.open-inline, a.button:not("[href=#], .no-popup")',
onCancel: function(event) {},
onError: function(data) {
var $el = $(this);
if (url === '#' || $(this).attr('onclick') || $(this).hasClass('no-popup')) {
return;
}
- CRM.loadForm(url, {
- openInline: 'a:not("[href=#], .no-popup")'
- }).on('crmFormSuccess', function(e, data) {
+ CRM.loadForm(url).on('crmFormSuccess', function(e, data) {
// Refresh page when form completes
$('#crm-main-content-wrapper').crmSnippet('refresh');
});
if (url === '#' || $(this).attr('onclick') || $(this).hasClass('no-popup')) {
return;
}
- CRM.loadForm(url, {
- openInline: 'a:not("[href=#], .no-popup")'
- }).on('crmFormSuccess', function (e, data) {
+ CRM.loadForm(url).on('crmFormSuccess', function (e, data) {
// Refresh page when form completes
$('#crm-main-content-wrapper').crmSnippet('refresh');
});