{include file='include/tag_selection.inc.tpl'} {footer_script}{literal} jQuery(document).ready(function(){ function displayDeletionWarnings() { jQuery(".warningDeletion").show(); jQuery("input[name=destination_tag]:checked").parent("label").children(".warningDeletion").hide(); } displayDeletionWarnings(); jQuery("#mergeTags label").click(function() { displayDeletionWarnings(); }); jQuery("input[name=merge]").click(function() { if (jQuery("ul.tagSelection input[type=checkbox]:checked").length < 2) { alert("{/literal}{'Select at least two tags for merging'|@translate}{literal}"); return false; } }); }); {/literal}{/footer_script}