Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
fb9bbdc9
Commit
fb9bbdc9
authored
Sep 24, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web intf: fix uri decoding when browsing.
parent
32d59336
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
share/lua/http/js/controlers.js
share/lua/http/js/controlers.js
+4
-4
No files found.
share/lua/http/js/controlers.js
View file @
fb9bbdc9
...
...
@@ -172,11 +172,11 @@ function browse(dir){
$
(
'
#browse_elements
'
).
empty
();
$
(
'
element
'
,
data
).
each
(
function
(){
if
(
$
(
this
).
attr
(
'
type
'
)
==
'
dir
'
||
$
.
inArray
(
$
(
this
).
attr
(
'
name
'
).
substr
(
-
3
),
video_types
)
!=-
1
||
$
.
inArray
(
$
(
this
).
attr
(
'
name
'
).
substr
(
-
3
),
audio_types
)
!=-
1
){
$
(
'
#browse_elements
'
).
append
(
createElementLi
(
$
(
this
).
attr
(
'
name
'
),
$
(
this
).
attr
(
'
type
'
),
$
(
this
).
attr
(
'
path
'
),
$
(
this
).
attr
(
'
name
'
).
substr
(
-
3
)));
$
(
'
#browse_elements
'
).
append
(
createElementLi
(
$
(
this
).
attr
(
'
name
'
),
$
(
this
).
attr
(
'
type
'
),
$
(
this
).
attr
(
'
uri
'
),
$
(
this
).
attr
(
'
name
'
).
substr
(
-
3
)));
}
});
$
(
'
[opendir]
'
).
dblclick
(
function
(){
browse
(
$
(
this
).
attr
(
'
opendir
'
));
browse
(
decodeURIComponent
(
$
(
this
).
attr
(
'
opendir
'
)).
substring
(
7
));
});
$
(
'
[openfile]
'
).
dblclick
(
function
(){
switch
(
tgt
){
...
...
@@ -195,7 +195,7 @@ function browse(dir){
case
'
#mobile
'
:
break
;
default
:
sendCommand
(
'
command=in_play&input=
file://
'
+
encodeURIComponent
(
$
(
this
).
attr
(
'
openfile
'
)));
sendCommand
(
'
command=in_play&input=
'
+
encodeURIComponent
(
$
(
this
).
attr
(
'
openfile
'
)));
break
;
}
$
(
'
#window_browse
'
).
dialog
(
'
close
'
);
...
...
@@ -212,7 +212,7 @@ function browse(dir){
$
(
'
[openfile]
'
).
click
(
function
(){
switch
(
tgt
){
case
'
#mobile
'
:
sendCommand
(
'
command=in_play&input=
file://
'
+
encodeURIComponent
(
$
(
this
).
attr
(
'
openfile
'
)),
"
window.location='mobile.html'
"
);
sendCommand
(
'
command=in_play&input=
'
+
encodeURIComponent
(
$
(
this
).
attr
(
'
openfile
'
)),
"
window.location='mobile.html'
"
);
break
;
default
:
break
;
...
...
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