Skip to content
Snippets Groups Projects
Commit e51d119f authored by Manuel Herrmann's avatar Manuel Herrmann
Browse files

dont start story mode w/o storybox

parent 801c0368
No related branches found
No related tags found
No related merge requests found
...@@ -269,7 +269,12 @@ Story.prototype.addFormText = function(parentNode, label, fieldName, x, y) ...@@ -269,7 +269,12 @@ Story.prototype.addFormText = function(parentNode, label, fieldName, x, y)
this.form_variables[fieldName] = null; this.form_variables[fieldName] = null;
} }
$(function() { $(function()
story = new Story($('#storyhead'), $('#storycanvas'), $('#storybox')); {
story.begin(); var storybox = $('#storybox');
if (storybox)
{
story = new Story($('#storyhead'), $('#storycanvas'), storybox);
story.begin();
}
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment