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
a880fc92
authored
Feb 09, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: always display file extension
parent
71b9cc5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
one/static/cloud.js
+2
-1
one/templates/box-filelist.html
+1
-1
No files found.
one/static/cloud.js
View file @
a880fc92
...
@@ -443,10 +443,11 @@ $(function() {
...
@@ -443,10 +443,11 @@ $(function() {
break
;
break
;
}
}
}
}
var
extension
=
d
.
NAME
.
match
(
/
\.\w
+$/
)[
0
].
substr
(
1
);
viewData
=
{
viewData
=
{
originalName
:
d
.
NAME
,
originalName
:
d
.
NAME
,
originalSize
:
d
.
SIZE
,
originalSize
:
d
.
SIZE
,
name
:
d
.
NAME
.
length
>
30
?
(
d
.
NAME
.
substr
(
0
,
2
7
)
+
'...
'
)
:
d
.
NAME
,
name
:
d
.
NAME
.
length
>
30
?
(
d
.
NAME
.
substr
(
0
,
2
0
)
+
'... ('
+
extension
+
')
'
)
:
d
.
NAME
,
size
:
convert
(
d
.
SIZE
),
size
:
convert
(
d
.
SIZE
),
type
:
gettext
(
'file'
),
type
:
gettext
(
'file'
),
mTime
:
d
.
MTIME
,
mTime
:
d
.
MTIME
,
...
...
one/templates/box-filelist.html
View file @
a880fc92
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<!-- ko foreach: {data:files,afterAdd:fadeIn,beforeRemove:fadeOutFile} -->
<!-- ko foreach: {data:files,afterAdd:fadeIn,beforeRemove:fadeOutFile} -->
<li
class=
"wm real"
>
<li
class=
"wm real"
>
<div
class=
"summary"
data-bind=
"click: clickHandler"
>
<div
class=
"summary"
data-bind=
"click: clickHandler"
>
<div
class=
"name"
data-bind=
"text: name, attr: {class: getTypeClass}"
></div>
<div
class=
"name"
data-bind=
"text: name, attr: {class: getTypeClass
, title: originalName
}"
></div>
<div
class=
"info"
data-bind=
"text: size"
></div>
<div
class=
"info"
data-bind=
"text: size"
></div>
<div
class=
"actions"
>
<div
class=
"actions"
>
<a
href=
"#"
data-bind=
"click: $parent.rename, clickBubble: false"
>
<a
href=
"#"
data-bind=
"click: $parent.rename, clickBubble: false"
>
...
...
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