Changeset 886

Show
Ignore:
Timestamp:
07/24/08 07:06:36 (4 months ago)
Author:
fumiakiy
Message:

Handle the result of regex.replace right to avoid empty images to be embedded. Thanks Makoto Tajima/M-logic for the bug report.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/EmoticonButton/mt-static/plugins/EmoticonButton/js/emoticon.js

    r644 r886  
    5050 
    5151    eventClick: function( event ) { 
    52         var name = event.target.id; 
    53         name = name.replace(/emoticon\-icon\-(\w+)/, '$1'); 
    54         if (!name
     52        var id = event.target.id; 
     53        var name = id.replace(/emoticon\-icon\-(\w+)/, '$1'); 
     54        if (!name || ( name == id )
    5555            return; 
    5656        var ancestor = DOM.getFirstAncestorByClassName( event.target, "emoticon-icon", true ); 
  • trunk/EmoticonButton/plugins/EmoticonButton/config.yaml

    r640 r886  
    11name: EmoticonButton 
    22id: emoticonbutton 
    3 version: 1.0 
     3version: 1.1 
    44author: Fumiaki Yoshimatsu, Six Apart K.K. 
    55author_url: http://www.luckypines.com/mt/