diff --git a/bower.json b/bower.json index 6ef5a0ba82..cc31847941 100644 --- a/bower.json +++ b/bower.json @@ -13,7 +13,7 @@ ], "dependencies": { "d3": "~3.5.5", - "jquery": "~2.1.4", + "jquery": "~3.1.1", "cal-heatmap": "~3.5.2", "bootstrap": "~3.3.4", "font-awesome": "~4.5.0", diff --git a/client/main.js b/client/main.js index d808af594e..fab3c79008 100644 --- a/client/main.js +++ b/client/main.js @@ -17,7 +17,7 @@ $(document).ready(function() { setCSRFToken($('meta[name="csrf-token"]').attr('content')); - $('img').error(function() { + $('img').on('error', function() { $(this) .unbind('error') .attr( @@ -69,7 +69,7 @@ $(document).ready(function() { dataType: 'json' }; return $.ajax(options) - .success(() => console.log('theme updated successfully')) + .done(() => console.log('theme updated successfully')) .fail(err => { let message; try {