Skip to content

Commit

Permalink
client: fix some jQuery deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Sep 25, 2019
1 parent a40386c commit 8e991c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/js/selfoss-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var selfoss = {
// so we enforce a default timeout on ajax calls
jQuery.ajaxSetup({timeout: 60000 });

jQuery(document).ready(function() {
$(function() {
if (selfoss.hasSession() || !$('body').hasClass('authenabled')) {
selfoss.ui.login();
selfoss.initUi();
Expand Down
2 changes: 1 addition & 1 deletion public/js/selfoss-events-sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ selfoss.events.sources = function() {
selfoss.events.navigation();
},
error: function(jqXHR) {
selfoss.showErrors(parent, $.parseJSON(jqXHR.responseText));
selfoss.showErrors(parent, JSON.parse(jqXHR.responseText));
},
complete: function() {
parent.find('.source-action').removeClass('loading');
Expand Down

0 comments on commit 8e991c4

Please sign in to comment.