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

Changeset 10543


Ignore:
Timestamp:
Jan 28, 2009, 6:52:07 PM (11 years ago)
Author:
ebihara
Message:

#3459:onClick イベントで実行される JavaScript? のスコープを window オブジェクトからハンドラ実行元の document オブジェクトに変更した上で、デフォルトで onClick イベントで定義されている処理を実行しないように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/pc/templates/inc_tinymce_textarea.tpl

    r8593 r10543  
    6666({foreach from=$INC_HEADER_decoration_config item=item key=key})
    6767({if $item})
    68 <a id="mce_textmode_button_({$key})" href="javascript:;" onclick="pne_mce_insert_tagname('mce_editor_textarea', '({$key|replace:"_":":"})');"><img src="({t_img_url_skin filename=deco_`$key`})" alt="" /></a>
     68<a id="mce_textmode_button_({$key})" href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', '({$key|replace:"_":":"})'); return false;"><img src="({t_img_url_skin filename=deco_`$key`})" alt="" /></a>
    6969({/if})
    7070({/foreach})
    7171({if $smarty.const.OPENPNE_USE_ALBUM})
    72 <a id="mce_textmode_button_op_image" href="javascript:;" onclick="window.open('({t_url m=pc a=page_h_album_insert_dialog})', '', 'width=600,height=550,toolbar=no,scrollbars=yes,left=10,top=10')"><img src="({t_img_url_skin filename=deco_op_image})" alt="" /></a>
     72<a id="mce_textmode_button_op_image" href="#" onclick="window.open('({t_url m=pc a=page_h_album_insert_dialog})', '', 'width=600,height=550,toolbar=no,scrollbars=yes,left=10,top=10'); return false;"><img src="({t_img_url_skin filename=deco_op_image})" alt="" /></a>
    7373({/if})
    7474({if $smarty.const.OPENPNE_EMOJI_DOCOMO_FOR_PC})
    75 <a id="mce_textmode_button_op_emoji_docomo" href="javascript:;" onclick="togglePallet('epDocomo');"><img src="({t_img_url_skin filename=deco_op_emoji_docomo})" alt="" /></a>
     75<a id="mce_textmode_button_op_emoji_docomo" href="#" onclick="togglePallet('epDocomo'); return false;"><img src="({t_img_url_skin filename=deco_op_emoji_docomo})" alt="" /></a>
    7676({else})
    77 <a id="mce_textmode_button_op_emoji_docomo" href="javascript:;" onclick="togglePallet('epDocomo');"><img src="({t_img_url_skin filename=deco_op_emoji_docomo})" alt="" /></a>
    78 <a id="mce_textmode_button_op_emoji_au" href="javascript:;" onclick="togglePallet('epAu');"><img src="({t_img_url_skin filename=deco_op_emoji_au})" alt="" /></a>
    79 <a id="mce_textmode_button_op_emoji_softbank" href="javascript:;" onclick="togglePallet('epSb');"><img src="({t_img_url_skin filename=deco_op_emoji_softbank})" alt="" /></a>
     77<a id="mce_textmode_button_op_emoji_docomo" href="#" onclick="togglePallet('epDocomo'); return false;"><img src="({t_img_url_skin filename=deco_op_emoji_docomo})" alt="" /></a>
     78<a id="mce_textmode_button_op_emoji_au" href="#" onclick="togglePallet('epAu'); return false;"><img src="({t_img_url_skin filename=deco_op_emoji_au})" alt="" /></a>
     79<a id="mce_textmode_button_op_emoji_softbank" href="#" onclick="togglePallet('epSb'); return false;"><img src="({t_img_url_skin filename=deco_op_emoji_softbank})" alt="" /></a>
    8080({/if})
    8181({if $smarty.const.OPENPNE_DECORATION_CMD_URL})
    82 <a id="mce_textmode_button_op_cmd" href="javascript:;" style="margin-left:20px;" onclick="window.open('({$smarty.const.OPENPNE_DECORATION_CMD_URL})')"><img src="({t_img_url_skin filename=deco_op_cmd})" alt="" /></a>
     82<a id="mce_textmode_button_op_cmd" href="#" style="margin-left:20px;" onclick="window.open('({$smarty.const.OPENPNE_DECORATION_CMD_URL})'); return false;"><img src="({t_img_url_skin filename=deco_op_cmd})" alt="" /></a>
    8383({/if})
    8484
Note: See TracChangeset for help on using the changeset viewer.