Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Fix ajax call jsonp MIME type error
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Oct 13, 2016
1 parent 00439f5 commit 3bde6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/Auth/view/auth/auth/login.phtml
Expand Up @@ -192,13 +192,13 @@ get latest versions information via ajax call

function getVersions() {

var update_url = "https://download.bareos.com/release-info/bareos-release-info.json?callback=jsonCallback";
var update_url = "https://download.bareos.com/release-info/bareos-release-info.js?callback=jsonCallback";

var v = $.ajax({
method: "GET",
url: update_url,
jsonpCallback: 'jsonCallback',
contenetType: 'application/json',
contentType: 'application/javascript',
dataType: 'jsonp',
timeout: 15000,
error: function() {
Expand Down

0 comments on commit 3bde6d9

Please sign in to comment.