Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
b60c023b
Commit
b60c023b
authored
May 16, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sort templates after regular VMs
parent
513ba674
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ResourceTree.js
www/manager/tree/ResourceTree.js
+6
-0
No files found.
www/manager/tree/ResourceTree.js
View file @
b60c023b
...
...
@@ -45,7 +45,13 @@ Ext.define('PVE.tree.ResourceTree', {
}
// numeric compare for VM IDs
// sort templates after regular VMs
if
(
v1
===
'
qemu
'
||
v1
===
'
openvz
'
)
{
if
(
n1
.
template
&&
!
n2
.
template
)
{
return
1
;
}
else
if
(
n2
.
template
&&
!
n1
.
template
)
{
return
-
1
;
}
v1
=
n1
.
vmid
;
v2
=
n2
.
vmid
;
if
((
tcmp
=
v1
>
v2
?
1
:
(
v1
<
v2
?
-
1
:
0
))
!=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment