ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 7147


Ignore:
Timestamp:
May 11, 2008, 8:31:46 AM (11 years ago)
Author:
ebihara
Message:

#2320:IEで利用することのできないJavaScriptの構文を使っていた箇所を修正

Location:
OpenPNE/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/public_html/js/tiny_mce/plugins/openpne/editor_plugin.js

    r7140 r7147  
    33+'" onmousedown="return false;" onclick="return false;" title="'+tinymce.DOM.encode(s.title)+'">';if(s.image){h+='<img class="mceIcon" src="'+s.image+'" /></a>';}else{h+='<span class="mceIcon '+s['class']+'"></span></a>';}
    44return h;},postRender:function(){tinymce.dom.Event.add(this.id,'click',this.showMenu,this);},setColor:function(c){this.value=c;this.hideMenu();this.settings.onselect(c);}});tinymce.create('tinymce.ui.OpenPNEEmojiButton:tinymce.ui.ColorSplitButton',{OpenPNEEmojiButton:function(id,s){var t=this;t.parent(id,s);t.settings=s;},renderMenu:function(){var t=this,m,i=0,s=t.settings,n,tb,tr,w;var DOM=tinymce.DOM,Event=tinymce.dom.Event,is=tinymce.is,each=tinymce.each;w=DOM.add(s.menu_container,'div',{id:t.id+'_menu',dir:'ltr','class':s['menu_class']+' '+s['class'],style:'position:absolute;left:0;top:-1000px;'});m=DOM.add(w,'div',{'class':s['class']+' mceSplitButtonMenu'});DOM.add(m,'span',{'class':'mceMenuLine'});n=DOM.add(m,'table',{'class':'mceEmojiSplitMenu'});tb=DOM.add(n,'tbody');for(var num in s.emoji){var emoji=s.emoji[num];for(var i=emoji.start;i<=emoji.end;i++){if(i==emoji.start||i%25==0){tr=DOM.add(tb,'tr');}
    5 n=DOM.add(tr,'td');n=DOM.add(n,'img',{src:"./skin/default/img/emoji/"+s.carrier+"/"+s.carrier+i+".gif",alt:"["+s.carrier+":"+i+"]",});Event.add(n,'mousedown',function(e){tinyMCE.execCommand("mceInsertContent",false,e.element().getAttribute("alt"));});}}
     5n=DOM.add(tr,'td');n=DOM.add(n,'img',{src:"./skin/default/img/emoji/"+s.carrier+"/"+s.carrier+i+".gif",alt:"["+s.carrier+":"+i+"]"});Event.add(n,'mousedown',function(e){tinyMCE.execCommand("mceInsertContent",false,e.element().getAttribute("alt"));});}}
    66DOM.addClass(m,'mceColorSplitMenu');return w;},renderHTML:function(){var s=this.settings,h='<a id="'+this.id+'" href="javascript:;" class="mceButton mceButtonEnabled '+s['class']
    77+'" onmousedown="return false;" onclick="return false;" title="'+tinymce.DOM.encode(s.title)+'">';if(s.image){h+='<img class="mceIcon" src="'+s.image+'" /></a>';}else{h+='<span class="mceIcon '+s['class']+'"></span></a>';}
  • OpenPNE/trunk/public_html/js/tiny_mce/plugins/openpne/editor_plugin.js.src

    r7140 r7147  
    6262                    n = DOM.add(n, 'img', {
    6363                        src : "./skin/default/img/emoji/" + s.carrier +"/" + s.carrier + i + ".gif",
    64                         alt : "[" + s.carrier + ":" + i + "]",
     64                        alt : "[" + s.carrier + ":" + i + "]"
    6565                    });
    6666
  • OpenPNE/trunk/webapp/modules/pc/templates/inc_tinymce_textarea.tpl

    r7145 r7147  
    4242        op_emoji_docomo : {
    4343            isEnabled : 1,
    44             imageURL : "({t_img_url_skin filename=deco_op_emoji_docomo})",
     44            imageURL : "({t_img_url_skin filename=deco_op_emoji_docomo})"
    4545        },
    4646        op_emoji_au : {
    4747            isEnabled : ({if $smarty.const.OPENPNE_EMOJI_DOCOMO_FOR_PC})0,({else})1({/if}),
    48             imageURL : "({t_img_url_skin filename=deco_op_emoji_au})",
     48            imageURL : "({t_img_url_skin filename=deco_op_emoji_au})"
    4949        },
    5050        op_emoji_softbank : {
    5151            isEnabled : ({if $smarty.const.OPENPNE_EMOJI_DOCOMO_FOR_PC})0,({else})1({/if}),
    52             imageURL : "({t_img_url_skin filename=deco_op_emoji_softbank})",
     52            imageURL : "({t_img_url_skin filename=deco_op_emoji_softbank})"
    5353        }
    5454    }
Note: See TracChangeset for help on using the changeset viewer.