Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

APIs: .on() and off() instead .bind() and .unbind() introduced in jqu…

…ery 1.7
  • Loading branch information...
commit edb4703796ac21d9341d44c610c8ed844b358583 1 parent d8d213e
@foxp2 foxp2 authored haraldpdl committed
View
2  osCommerce/OM/Core/Site/Admin/Application/Customers/pages/section_addressBook.php
@@ -358,7 +358,7 @@ function showEditAddressForm(id) {
$('#addressBookForm #abSubmitButtonsNew').hide();
// Replace onclick handler to pass the address book id as a function parameter
- $('#addressBookForm #abSubmitButtonsEdit button[data-abButtonType="henrysBucket"]').unbind('click').click(function() {
+ $('#addressBookForm #abSubmitButtonsEdit button[data-abButtonType="henrysBucket"]').off('click').click(function() {
processAddress(id);
});
View
2  public/sites/Admin/javascript/datatable.js
@@ -128,7 +128,7 @@ var osC_DataTable = function() {
});
// Automatically refresh alternating row background colours on change
- $('#' + dataTableName + ' tbody').bind('sortupdate', function(event, ui) {
+ $('#' + dataTableName + ' tbody').on('sortupdate', function(event, ui) {
$('#' + dataTableName + ' tbody tr').removeClass('alt');
$('#' + dataTableName + ' tbody tr:odd').addClass('alt');
});
Please sign in to comment.
Something went wrong with that request. Please try again.