Dotclear

Changeset 1804


Ignore:
Timestamp:
10/29/09 08:55:59 (13 years ago)
Author:
Osku
Message:

coin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/smiliesEditor/_public.php

    r1769 r1804  
    3333              $js = html::stripHostURL($core->blog->getQmarkURL().'pf=smiliesEditor/js/smile.js'); 
    3434      
    35           echo "\n". 
    36           //'<script type="text/javascript">'. 
    37           //'function smiliesManagerInsertSmiley(textarea, smiley) { smiley = \' \'+smiley+\' \'; textarea = document.getElementById(textarea); textarea.focus(); var start, end, scrollPos; if (typeof(document["selection"]) != \'undefined\') { document.selection.createRange().text = smiley; textarea.caretPos += smiley.length; } else if (typeof(textarea[\'setSelectionRange\']) != \'undefined\') { start = textarea.selectionStart; end = textarea.selectionEnd; scrollPos = textarea.scrollTop; textarea.value = textarea.value.substring(0, start)+smiley+textarea.value.substring(end); textarea.setSelectionRange(start + smiley.length, start + smiley.length); textarea.scrollTop = scrollPos; } }'. 
    38           //'</script>'."\n". 
    39           '<script type="text/javascript" src="'.$js.'"></script>'."\n"; 
     35          echo "\n".'<script type="text/javascript" src="'.$js.'"></script>'."\n"; 
    4036     } 
    4137      
Note: See TracChangeset for help on using the changeset viewer.

Sites map