5 Sep 2019 Edited #1

Autosave/Direct draft loads - 1 Error / Drafts not saving

Ultimate subscriber
I installed this plugin to my board (we are using a custom theme), and I went to go test a few things out and see how it was working, and it seems that it is not very compatible with my forum.

I also see an error in the console that states:
jquery.js?ver=1821:2 Uncaught TypeError: e.indexOf is not a function
    at w.fn.init.w.fn.load (jquery.js?ver=1821:2)
    at Thread-xxx
Along with that, if I'm not mistaken, the "Direct draft loads" is supposed to save the users last text in the quick reply/full editor of that thread/forum, however, that is also not an option for me even when the setting is enabled

PHP Version: 7.2.21
MyBB Version: 1.8.21
Shade 5 Sep 2019
#2
It’s possible that the plugin is conflicting either with jQuery 3 or your custom theme. Either way I will check it out when I’m back.
day-day likes this post
day-day 5 Sep 2019
#3
It’s possible that the plugin is conflicting either with jQuery 3 or your custom theme. Either way I will check it out when I’m back.
Shade (5 Sep 2019)
Alright thanks!
day-day 10 Sep 2019
#4
Bump for friendly reminder :)
Shade 10 Sep 2019
#5
I will have some spare time next week.
day-day likes this post
Shade 15 Sep 2019
#6
Share your board URL please.
day-day 16 Sep 2019
#7
Share your board URL please.
Shade (15 Sep 2019)
Msg’d u with it
Shade 17 Sep 2019 Edited
#8
Open inc/plugins/autosavedrafts.php, line 681, replace:
jQuery(window).load(function()
with:
$(document).ready(function()
The plugin is indeed very old, but will get an update as soon as possible. This will also fix Uncaught TypeError: this.atwho is not a function.
day-day 17 Sep 2019
#9
Open inc/plugins/autosavedrafts.php, line 681, replace:
jQuery(window).load(function()
with:
$(document).ready(function()
The plugin is indeed very old, but will get an update as soon as possible. This will also fix Uncaught TypeError: this.atwho is not a function.
Shade (17 Sep 2019)
Thanks that worked!

And where should I go to replace the lines for QuickReferences? I could not find jQuery(window).load(function()
in inc/plugins/quickreferences.php
Shade 17 Sep 2019
#10
QuickReferences was blocked by Drafts AutoSave, it should work out of the box now that Drafts AutoSave's issue has been resolved.
day-day likes this post