removed snippet check
This commit is contained in:
parent
7b97bd7839
commit
ae7237f49b
@ -9,8 +9,7 @@ class CRM_EntityTemplates_Utils {
|
|||||||
* @param object $form
|
* @param object $form
|
||||||
*/
|
*/
|
||||||
public static function preProcess($formName, &$form) {
|
public static function preProcess($formName, &$form) {
|
||||||
if (CRM_Utils_Request::retrieve('snippet', 'String')
|
if (!($form->getVar('_action') & CRM_Core_Action::ADD)
|
||||||
|| !($form->getVar('_action') & CRM_Core_Action::ADD)
|
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
$('#entity_template_id').change(function() {
|
$('#entity_template_id').change(function() {
|
||||||
window.location.href = '{/literal}{$redirectUrl}{literal}&templateId=' + $(this).val();
|
window.location.href = '{/literal}{$redirectUrl}{literal}&templateId=' + $(this).val();
|
||||||
});
|
});
|
||||||
|
window.onbeforeunload = function() {};
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/literal}
|
{/literal}
|
||||||
|
Loading…
Reference in New Issue
Block a user