Post by tifosi » Tue Oct 21, 2014 6:04 am

This is more of a general comment and need to look at.

There are quite a few template files, particularly in the admin section, that use ajax to call cart urls for things like autocomplete.

They are using the older success() function callback.

This is deprecated from jquery 1.8 and will be removed in future.

The recommended method is to use the done & fail chained functions

Code: Select all

var jqxhr = $.ajax( "example.php" )
.done(function() {
    alert( "success" );
})
.fail(function() {
    alert( "error" );
})
.always(function() {
    alert( "complete" );
});
http://api.jquery.com/jquery.ajax/

Might not be an issue for a while, but eventually will be if jquery is updated in future releases.

New member

Posts

Joined
Tue Feb 17, 2009 8:14 am
Who is online

Users browsing this forum: No registered users and 4 guests