Skip to content

Commit 15892c1

Browse files
committed
update api and item date fix.. related to #17 @paolobiavati issue
1 parent c667294 commit 15892c1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ File manager developed with AngularJS and Bootstrap by [Jonas Sciangula Street](
4040
"name": "joomla",
4141
"rights": "drwxr-xr-x",
4242
"size": "4096",
43-
"time": "16:07",
43+
"date": "2015-04-29 09:04:24",
4444
"type": "dir"
4545
}, {
4646
"name": "magento",
4747
"rights": "drwxr-xr-x",
4848
"size": "4096",
49-
"time": "17:42",
49+
"date": "17:42",
5050
"type": "dir"
5151
}, {
5252
"name": ".htaccess",
5353
"rights": "-rw-r--r--",
5454
"size": "0",
55-
"time": "17:42",
55+
"date": "2014-01-03 10:12:09",
5656
"type": "file"
5757
}, {
5858
"name": "index.php",
5959
"rights": "-rw-r--r--",
6060
"size": "0",
61-
"time": "17:41",
61+
"date": "2013-11-01 11:44:13",
6262
"type": "file"
6363
}
6464
]}
@@ -126,12 +126,12 @@ File manager developed with AngularJS and Bootstrap by [Jonas Sciangula Street](
126126
--------------------
127127

128128
#### Edit file
129-
URL: $config.removeUrl, Method: POST
129+
URL: $config.editUrl, Method: POST
130130

131131
##### JSON Request content
132132
```json
133133
{ "params": {
134-
"mode": "edit",
134+
"mode": "savefile",
135135
"content": "<?php echo random(); ?>",
136136
"path": "/public_html/index.php",
137137
}}

assets/js/item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
path: path || [],
99
type: 'file',
1010
size: 0,
11-
date: new Date(model && model.date || null),
11+
date: new Date(model.date && Date.parse(model.date.replace('-','/','g')))
1212
perms: new Chmod(model && model.rights),
1313
content: '',
1414
recursive: false,

0 commit comments

Comments
 (0)