{combine_script id="markitup" require='jquery' path=$SMILIES_PATH|@cat:"template/markitup/jquery.markitup.js"} {combine_css path=$SMILIES_PATH|@cat:"template/markitup/style.markitup.css"} {footer_script require='jquery'} {literal} jQuery(document).ready(function() { if (jQuery('.markItUp').length == 0) { jQuery('#{/literal}{$form_name}{literal} textarea').markItUp({markupSet: []}); } jQuery('#SmiliesSupport').appendTo('.markItUpHeader ul:first-child'); jQuery('#allsmilies').mouseover(function(){ jQuery("#{/literal}{$form_name}{literal} textarea").focus(); jQuery('#smiliesdiv').css('display',''); }); jQuery('#smiliesdiv a').click(function() { emoticon = jQuery(this).attr("href"); jQuery.markItUp({ replaceWith:emoticon }); jQuery('#smiliesdiv').css('display','none'); return false; }); }); {/literal} {/footer_script}