Secure the call of the costumStart function

Author: Peter 'Pita' Martischka <petermartischka@googlemail.com>
This commit is contained in:
Peter 'Pita' Martischka 2011-08-01 12:08:18 +01:00 committed by Etherpad Lite
parent 38fd56a877
commit 053e48c3f4
3 changed files with 3 additions and 3 deletions

View File

@ -125,6 +125,6 @@
}
//start the costum js
if(costumStart) costumStart();
if(typeof costumStart == "function") costumStart();
</script>
</html>

View File

@ -30,7 +30,7 @@ $(document).ready(function()
}
//start the costum js
if(costumStart) costumStart();
if(typeof costumStart == "function") costumStart();
handshake();
});

View File

@ -58,7 +58,7 @@
$(document).ready(function ()
{
//start the costum js
if(costumStart) costumStart();
if(typeof costumStart == "function") costumStart();
//get the padId out of the url
var urlParts= document.location.pathname.split("/");