Skip to content

Commit

Permalink
Merge pull request #26 from turnermm/master
Browse files Browse the repository at this point in the history
Test for JSINFO.folded in script.js, prevents javascript failure when not defined in folded plugin that activate pop-ups.
  • Loading branch information
LarsGit223 committed May 26, 2017
2 parents 7830dd7 + 16a711f commit 24f6f5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script.js
Expand Up @@ -14,6 +14,7 @@
jQuery(function() {
// containers for localised reveal/hide strings,
// populated from the content set by the action plugin
if(!JSINFO || !JSINFO['plugin_folded']) return;
var folded_reveal = JSINFO['plugin_folded']['reveal'];
var folded_hide = JSINFO['plugin_folded']['hide'];

Expand Down

0 comments on commit 24f6f5b

Please sign in to comment.