mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Renamed paramSettings to getParameters, to cause less confusion
This commit is contained in:
parent
7432b7aff9
commit
a239158b49
1 changed files with 3 additions and 3 deletions
|
@ -107,7 +107,7 @@ function randomString()
|
|||
// * the parameter was supplied and matches checkVal
|
||||
// * 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
|
||||
var paramSettings = [
|
||||
var getParameters = [
|
||||
{ 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: "showChat", checkVal: "false", callback: function(val) { $('#chaticon').hide(); } },
|
||||
|
@ -126,9 +126,9 @@ function getParams()
|
|||
{
|
||||
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];
|
||||
|
||||
if(value && (value == setting.checkVal || setting.checkVal == null))
|
||||
|
|
Loading…
Reference in a new issue