Line | |
---|
1 | {combine_script id="markitup" require='jquery' path=$SMILIES_PATH|@cat:"template/markitup/jquery.markitup.js"} |
---|
2 | {combine_css path=$SMILIES_PATH|@cat:"template/markitup/style.markitup.css"} |
---|
3 | |
---|
4 | {footer_script require='jquery'} |
---|
5 | {literal} |
---|
6 | jQuery(document).ready(function() { |
---|
7 | if (jQuery('.markItUp').length == 0) { |
---|
8 | jQuery('#{/literal}{$form_name}{literal} textarea').markItUp({markupSet: []}); |
---|
9 | } |
---|
10 | jQuery('#SmiliesSupport').appendTo('.markItUpHeader ul:first-child'); |
---|
11 | jQuery('#allsmilies').mouseover(function(){ |
---|
12 | jQuery("#{/literal}{$form_name}{literal} textarea").focus(); |
---|
13 | jQuery('#smiliesdiv').css('display',''); |
---|
14 | }); |
---|
15 | jQuery('#smiliesdiv a').click(function() { |
---|
16 | emoticon = jQuery(this).attr("href"); |
---|
17 | jQuery.markItUp({ replaceWith:emoticon }); |
---|
18 | jQuery('#smiliesdiv').css('display','none'); |
---|
19 | return false; |
---|
20 | }); |
---|
21 | }); |
---|
22 | {/literal} |
---|
23 | {/footer_script} |
---|
24 | |
---|
25 | <ul style="display:none;"> |
---|
26 | <li id="SmiliesSupport" class="markItUpButton markItUpDropMenu"> |
---|
27 | <a id="allsmilies" style="background-image:url({$REPRESENTANT});" title="{'All Smilies'|@translate}"></a> |
---|
28 | |
---|
29 | <ul id="smiliesdiv"> |
---|
30 | <li><table><tr> |
---|
31 | {foreach from=$smiliesfiles item=smileyfile} |
---|
32 | <td><a href="{$smileyfile.TITLE}"><img src="{$smileyfile.PATH}"/></a></td> |
---|
33 | {$smileyfile.TR} |
---|
34 | {/foreach} |
---|
35 | </tr></table></li> |
---|
36 | </ul> |
---|
37 | </li> |
---|
38 | </ul> |
---|
Note: See
TracBrowser
for help on using the repository browser.