Remove broken dynamic title from event template
authorMatthew Wire <mjw@mjwconsult.co.uk>
Mon, 22 Nov 2021 12:14:12 +0000 (12:14 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Mon, 22 Nov 2021 12:14:22 +0000 (12:14 +0000)
templates/CRM/Event/Form/ManageEvent/Tab.tpl

index bbaf1a0fc64af1d339080a37fdde96181dec15dc..fc7f2087b109a67bb12ee4d24772ecd42a75d195 100644 (file)
@@ -78,15 +78,6 @@ CRM.$(function($) {
     return false;
   });
 
-  // Update title dynamically
-  $('h1').each(function() {
-    var title = {/literal}{$title|json_encode}{literal};
-    $(this).html($(this).html().replace(title, '<span id="crm-event-name-page-title">' + title + '</span>'));
-  });
-  $('#crm-main-content-wrapper').on('keyup change', 'input#title', function() {
-    $('#crm-event-name-page-title').text($(this).val());
-  });
-
 });
 </script>
 {/literal}