Renamed paramSettings to getParameters, to cause less confusion

This commit is contained in:
mluto 2013-01-28 20:17:34 +01:00
parent 7432b7aff9
commit a239158b49

View file

@ -107,7 +107,7 @@ function randomString()
// * the parameter was supplied and matches checkVal // * the parameter was supplied and matches checkVal
// * the parameter was supplied and checkVal is null // * the parameter was supplied and checkVal is null
// callback: the function to call when all above succeeds, `val` is the value supplied by the user // callback: the function to call when all above succeeds, `val` is the value supplied by the user
var paramSettings = [ var getParameters = [
{ name: "noColors", checkVal: "true", callback: function(val) { settings.noColors = true; $('#clearAuthorship').hide(); } }, { name: "noColors", checkVal: "true", callback: function(val) { settings.noColors = true; $('#clearAuthorship').hide(); } },
{ name: "showControls", checkVal: "false", callback: function(val) { $('#editbar').hide(); $('#editorcontainer').css({"top":"0px"}); } }, { name: "showControls", checkVal: "false", callback: function(val) { $('#editbar').hide(); $('#editorcontainer').css({"top":"0px"}); } },
{ name: "showChat", checkVal: "false", callback: function(val) { $('#chaticon').hide(); } }, { name: "showChat", checkVal: "false", callback: function(val) { $('#chaticon').hide(); } },
@ -126,9 +126,9 @@ function getParams()
{ {
var params = getUrlVars() var params = getUrlVars()
for(var i = 0; i < paramSettings.length; i++) for(var i = 0; i < getParameters.length; i++)
{ {
var setting = paramSettings[i]; var setting = getParameters[i];
var value = params[setting.name]; var value = params[setting.name];
if(value && (value == setting.checkVal || setting.checkVal == null)) if(value && (value == setting.checkVal || setting.checkVal == null))