Skip to content

Commit

Permalink
Test for JSINFO.folded in script.js, prevents javascript failure when…
Browse files Browse the repository at this point in the history
… not defined in plugin that activate pop-ups
  • Loading branch information
turnermm committed Jul 14, 2015
1 parent 140e370 commit 16a711f
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 16a711f

Please sign in to comment.