简体   繁体   中英

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

$('#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;
    });

Read the comments in the code below.

$('#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;
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM