Skip to content

Commit

Permalink
window object not in jquery context fix #530
Browse files Browse the repository at this point in the history
  • Loading branch information
jdungan committed Jan 15, 2018
1 parent 42f73cd commit f886e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/widget-app.js
Expand Up @@ -76,7 +76,7 @@ class WidgetApp {
processData: false,
headers: {'X-CSRFToken': csrf_token},
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
success: window.location.reload
success: window.location.reload.bind(window.location)
})
.fail(this.ajax_fail(this.$form))
}
Expand Down

0 comments on commit f886e8b

Please sign in to comment.