drupal-civicrm/sites/all/modules/civicrm/js/crm.addNew.js
2018-01-14 13:10:16 +00:00

9 lines
245 B
JavaScript

// http://civicrm.org/licensing
// Opens the "new item" dialog after creating a container/set
CRM.$(function($) {
var emptyMsg = $('.crm-empty-table');
if (emptyMsg.length) {
$('.action-link a.button', '#crm-container').click();
}
});