diff options
author | Frank Bergkemper <frank.bergkemper@bareos.com> | 2016-10-13 12:50:24 +0300 |
---|---|---|
committer | Frank Bergkemper <frank.bergkemper@bareos.com> | 2016-10-13 12:50:24 +0300 |
commit | 3bde6d9f3d3b6bcfa1e28598c5cd6cb4603a5387 (patch) | |
tree | fdf9cbbcec26264954267dbaa35b7f02cce62ee2 | |
parent | 00439f575f7dad4d425a30ef559b66e27df9c5d8 (diff) |
Fix ajax call jsonp MIME type error
-rw-r--r-- | module/Auth/view/auth/auth/login.phtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/Auth/view/auth/auth/login.phtml b/module/Auth/view/auth/auth/login.phtml index efe5f12..2f8f99f 100644 --- a/module/Auth/view/auth/auth/login.phtml +++ b/module/Auth/view/auth/auth/login.phtml @@ -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() { |