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": { "dependencies": {
"d3": "~3.5.5", "d3": "~3.5.5",
"jquery": "~2.1.4", "jquery": "~3.1.1",
"cal-heatmap": "~3.5.2", "cal-heatmap": "~3.5.2",
"bootstrap": "~3.3.4", "bootstrap": "~3.3.4",
"font-awesome": "~4.5.0", "font-awesome": "~4.5.0",

View File

@ -17,7 +17,7 @@ $(document).ready(function() {
setCSRFToken($('meta[name="csrf-token"]').attr('content')); setCSRFToken($('meta[name="csrf-token"]').attr('content'));
$('img').error(function() { $('img').on('error', function() {
$(this) $(this)
.unbind('error') .unbind('error')
.attr( .attr(
@ -69,7 +69,7 @@ $(document).ready(function() {
dataType: 'json' dataType: 'json'
}; };
return $.ajax(options) return $.ajax(options)
.success(() => console.log('theme updated successfully')) .done(() => console.log('theme updated successfully'))
.fail(err => { .fail(err => {
let message; let message;
try { try {