这个用于编辑图像的javascript弹出框在firefox和chrome中有效,但在InternetExplorer中

this javascript pop up box for edit images works in firefox and chrome but not shows pop up box in Internet explorer

本文关键字:chrome firefox 有效 InternetExplorer 但在 编辑 用于 图像 javascript      更新时间:2023-09-26
$('#rm-css-launch').removeClass('disabled').attr('href', '#launch-css').bind('click',                function (event) {
$(event.currentTarget).siblings().removeClass('active').end().addClass('active');
        RMUIWidgetRelay.relayEvent(RMUIEvent.EDITOR_MODE_CHANGE, 'css');
        alert("Test");
        return false;
    });

阅读下面代码中的注释。

$('#rm-css-launch').removeClass('disabled')
  .attr('href', '#launch-css')
  .bind('click', function(event){
    //IE7 & IE8 do not support the method 'event.currentTarget';
    //use 'this' instead.
    $(this).siblings().removeClass('active').end().addClass('active');
    RMUIWidgetRelay.relayEvent(RMUIEvent.EDITOR_MODE_CHANGE, 'css');
    alert("Test");
    return false;
});