Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
86ba08a0
authored
Feb 06, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: sort files by size
parent
664f1793
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
one/static/cloud.js
+12
-1
one/templates/box-filelist.html
+1
-0
No files found.
one/static/cloud.js
View file @
86ba08a0
...
...
@@ -200,7 +200,16 @@ $(function() {
return
1
;
}
return
-
1
;
}
},
size
:
function
(
a
,
b
)
{
if
(
a
.
type
===
b
.
type
)
{
return
b
.
originalSize
-
a
.
originalSize
;
}
if
(
a
.
type
===
'fájl'
)
{
return
1
;
}
return
-
1
;
},
}[
self
.
sortBy
()]);
}
...
...
@@ -258,6 +267,7 @@ $(function() {
if
(
d
.
TYPE
===
'D'
)
{
viewData
=
{
originalName
:
d
.
NAME
,
originalSize
:
0
,
name
:
d
.
NAME
.
length
>
30
?
(
d
.
NAME
.
substr
(
0
,
27
)
+
'...'
)
:
d
.
NAME
,
size
:
'katalógus'
,
type
:
'katalógus'
,
...
...
@@ -288,6 +298,7 @@ $(function() {
}
viewData
=
{
originalName
:
d
.
NAME
,
originalSize
:
d
.
SIZE
,
name
:
d
.
NAME
.
length
>
30
?
(
d
.
NAME
.
substr
(
0
,
27
)
+
'...'
)
:
d
.
NAME
,
size
:
convert
(
d
.
SIZE
),
type
:
'fájl'
,
...
...
one/templates/box-filelist.html
View file @
86ba08a0
...
...
@@ -13,6 +13,7 @@
<select
data-bind=
"value: sortBy"
>
<option
value=
"name"
>
Név szerint
</option>
<option
value=
"date"
>
Dátum szerint
</option>
<option
value=
"size"
>
Méret szerint
</option>
</select>
</div>
<div
class=
"name"
><small>
Jelenlegi hely:
<span
data-bind=
"text: currentPath"
></span></small></div>
...
...
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