Fix: Variable scope

Fix for type error, cf.
https://github.com/ilosuna/mylittleforum/issues/35#issuecomment-252064541
This commit is contained in:
Micha 2016-10-06 21:41:55 +02:00
parent 45152578dc
commit 8718955c49

View file

@ -842,10 +842,10 @@ var ready = new (function () {
* ein Vorschaufenster und haengt dieses im Dokument
* ein
* @param structure
* @param templatePath
* @param path2template
*/
function AjaxPreviewWindow(structure, templatePath) {
var templatePath = templatePath?templatePath:"";
function AjaxPreviewWindow(structure, path2template) {
var templatePath = path2template?path2template:"";
var hideURI = false;
var win = document.getElementById('ajax-preview');
var self = this;