$('#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.