Portal: BrowseBrick: Primary action is now also displayed in the secondary actions menu

SVN:trunk[4727]
This commit is contained in:
Guillaume Lajarige
2017-05-10 14:44:15 +00:00
parent 5354b0b32b
commit 096cfdc529
3 changed files with 6 additions and 6 deletions

View File

@@ -246,9 +246,9 @@
if(levelActionsKeys.length > 1) if(levelActionsKeys.length > 1)
{ {
// Retrieving secondary action // Retrieving secondary action (Now we also display primary action)
var actionsButtons = {}; var actionsButtons = {};
for(j = 1; j < levelActionsKeys.length; j++) for(j = 0; j < levelActionsKeys.length; j++)
{ {
actionsButtons[levelActionsKeys[j]] = levelActions[levelActionsKeys[j]]; actionsButtons[levelActionsKeys[j]] = levelActions[levelActionsKeys[j]];
} }

View File

@@ -108,9 +108,9 @@
// - Secondary actions // - Secondary actions
if(levelActionsKeys.length > 1) if(levelActionsKeys.length > 1)
{ {
// Retrieving secondary action // Retrieving secondary action (Now we also display primary action)
var actionsButtons = {}; var actionsButtons = {};
for(j = 1; j < levelActionsKeys.length; j++) for(j = 0; j < levelActionsKeys.length; j++)
{ {
actionsButtons[levelActionsKeys[j]] = levelActions[levelActionsKeys[j]]; actionsButtons[levelActionsKeys[j]] = levelActions[levelActionsKeys[j]];
} }

View File

@@ -244,9 +244,9 @@
if(levelActionsKeys.length > 1) if(levelActionsKeys.length > 1)
{ {
// Retrieving secondary action // Retrieving secondary action (Now we also display primary action)
var actionsButtons = {}; var actionsButtons = {};
for(j = 1; j < levelActionsKeys.length; j++) for(j = 0; j < levelActionsKeys.length; j++)
{ {
actionsButtons[levelActionsKeys[j]] = levelActions[levelActionsKeys[j]]; actionsButtons[levelActionsKeys[j]] = levelActions[levelActionsKeys[j]];
} }