Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
275cab93
Commit
275cab93
authored
3 years ago
by
Eric Oulashin
Browse files
Options
Downloads
Patches
Plain Diff
Fix for left/right navigation for command bar introduced in last commit
parent
2cd62d2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xtrn/ddfilelister/ddfilelister.js
+10
-8
10 additions, 8 deletions
xtrn/ddfilelister/ddfilelister.js
with
10 additions
and
8 deletions
xtrn/ddfilelister/ddfilelister.js
+
10
−
8
View file @
275cab93
...
@@ -1192,19 +1192,21 @@ function DDFileMenuBar_getDDFileMenuBarItemText(pText, pSelected, pWithTrailingB
...
@@ -1192,19 +1192,21 @@ function DDFileMenuBar_getDDFileMenuBarItemText(pText, pSelected, pWithTrailingB
// menu bar on the screen
// menu bar on the screen
function
DDFileMenuBar_incrementMenuItemAndRefresh
()
function
DDFileMenuBar_incrementMenuItemAndRefresh
()
{
{
++
this
.
currentCommandIdx
;
var
newCmdIdx
=
this
.
currentCommandIdx
+
1
;
if
(
this
.
currentCommandIdx
>=
this
.
cmdArray
.
length
)
if
(
newCmdIdx
>=
this
.
cmdArray
.
length
)
this
.
currentCommandIdx
=
0
;
newCmdIdx
=
0
;
this
.
refreshWithNewAction
(
this
.
currentCommandIdx
);
// Will set this.currentCommandIdx
this
.
refreshWithNewAction
(
newCmdIdx
);
}
}
// For the DDFileMenuBar class: Decrements to the previous menu item and refreshes the
// For the DDFileMenuBar class: Decrements to the previous menu item and refreshes the
// menu bar on the screen
// menu bar on the screen
function
DDFileMenuBar_decrementMenuItemAndRefresh
()
function
DDFileMenuBar_decrementMenuItemAndRefresh
()
{
{
--
this
.
currentCommandIdx
;
var
newCmdIdx
=
this
.
currentCommandIdx
-
1
;
if
(
this
.
currentCommandIdx
<
0
)
if
(
newCmdIdx
<
0
)
this
.
currentCommandIdx
=
this
.
cmdArray
.
length
-
1
;
newCmdIdx
=
this
.
cmdArray
.
length
-
1
;
this
.
refreshWithNewAction
(
this
.
currentCommandIdx
);
// Will set this.currentCommandIdx
this
.
refreshWithNewAction
(
newCmdIdx
);
}
}
// For the DDFileMenuBar class: Gets the return code for the currently selected action
// For the DDFileMenuBar class: Gets the return code for the currently selected action
function
DDFileMenuBar_getCurrentSelectedAction
()
function
DDFileMenuBar_getCurrentSelectedAction
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment