From ff4429fad452e3e2a7e19b0faaefc608347b6373 Mon Sep 17 00:00:00 2001 From: Eduardo GP Date: Fri, 11 May 2018 13:49:29 -0700 Subject: [PATCH] fix e.indexOf is not a function error (#5982) --- rest_framework/static/rest_framework/js/default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/static/rest_framework/js/default.js b/rest_framework/static/rest_framework/js/default.js index d8394b0bf..bec2e4f9e 100644 --- a/rest_framework/static/rest_framework/js/default.js +++ b/rest_framework/static/rest_framework/js/default.js @@ -41,7 +41,7 @@ $(document).ready(function() { $('.form-switcher a:first').tab('show'); } - $(window).load(function() { + $(window).on('load', function() { $('#errorModal').modal('show'); }); });