Extension, Fieldtype

Archived
Forum
(read-only)


For official support, visit the official support site »

Wyvern

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4

Back to this add-on's main page
View Other Add-ons From Rein de Vries

     

JS Error in wyvern/plugin.js EE.publish.autosave is undefined

General

komtur
komtur

Error: in /themes/third_party/wyvern/plugins/wyvern/plugin.js?t=B8DJ5M3

if(typeof EE.publish == "object" && EE.publish.autosave.interval 10

EE.publish.autosave is undefined


I can set in EE
$config[‘autosave_interval_seconds’] = 30;
$config[‘autosave_interval_seconds’] = ‘30’;
or do not set it.
No difference.

litzinger
# 1
Developer
litzinger

Where are you using the Wyvern field? In the CP or in a SAEF?

Change that line to this and see if it works:

if(typeof EE.publish == "object" && EE.publish.autosave == "object" && EE.publish.autosave.interval 10
komtur
# 2
komtur

Works perfect. JS Error is gone. Thanx for quick response.

To answer your question: it was SAEF

litzinger
# 3
Developer
litzinger

Ah. Yeah, I noticed this on one of my projects a couple weeks ago and added that JS fix. It’ll be in the next update.