Merge pull request #12605 from petrgazarov/fix/upgrade-jquery-major-version

Bump JQuery major version - to 3.1.1
This commit is contained in:
Berkeley Martinez
2017-01-26 15:00:16 -08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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 {