Commit a026ff79 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not use obsolete jQuery's bind().

parent b1868368
......@@ -181,7 +181,7 @@
that.newElement = function (element) {
var element_type = element._class.replace('.', '-');
priv.super_newElement(element, configuration[element_type]);
$("#" + element.id).bind('click', function () {
$("#" + element.id).on('click', function () {
$("#dialog-form").dialog("destroy");
priv.prepareDialogForElement(element.id, element.id);
$("#dialog-form").dialog("open");
......
......@@ -115,7 +115,7 @@
sheet.getSheet().setNav(false);
// Here we bind on the parent object because bind will be
// reset when we replace the contents by using html().
$('#spreadsheet').bind('sheetCellEdited', function () {
$('#spreadsheet').on('sheetCellEdited', function () {
priv.onDataChange();
});
// When we click outside of the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment