Remove onclick attributes from editbar.

This commit is contained in:
Chad Weider 2012-02-29 14:13:02 -08:00
parent 6fd73ecfda
commit fbbdddae8e
3 changed files with 22 additions and 22 deletions

View file

@ -97,8 +97,15 @@ var padeditbar = (function()
var self = {
init: function()
{
var self = this;
$("#editbar .editbarbutton").attr("unselectable", "on"); // for IE
$("#editbar").removeClass("disabledtoolbar").addClass("enabledtoolbar");
$("#editbar [data-key]").each(function (i, e) {
$(e).click(function (event) {
self.toolbarClick($(e).attr('data-key'));
event.preventDefault();
});
});
},
isEnabled: function()
{