Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
49f3fdae
Commit
49f3fdae
authored
Mar 18, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Http interface: make it possible to delete playlist nodes. Don't delete read only playlist items.
parent
d2768293
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
11 deletions
+27
-11
share/http/js/functions.js
share/http/js/functions.js
+25
-9
share/http/requests/playlist.xml
share/http/requests/playlist.xml
+2
-2
No files found.
share/http/js/functions.js
View file @
49f3fdae
...
...
@@ -520,6 +520,19 @@ function parse_playlist()
nda
.
appendChild
(
ndai
);
pos
.
appendChild
(
nda
);
pos
.
appendChild
(
document
.
createTextNode
(
'
'
+
elt
.
getAttribute
(
'
name
'
)
)
);
if
(
elt
.
getAttribute
(
'
ro
'
)
==
'
rw
'
)
{
pos
.
appendChild
(
document
.
createTextNode
(
'
'
)
);
var
del
=
document
.
createElement
(
"
a
"
);
del
.
setAttribute
(
'
href
'
,
'
javascript:pl_delete(
'
+
elt
.
getAttribute
(
'
id
'
)
+
'
)
'
);
var
delimg
=
document
.
createElement
(
"
img
"
);
delimg
.
setAttribute
(
'
src
'
,
'
images/delete_small.png
'
);
delimg
.
setAttribute
(
'
alt
'
,
'
(delete)
'
);
del
.
appendChild
(
delimg
);
pos
.
appendChild
(
del
);
}
var
nd
=
document
.
createElement
(
"
div
"
);
nd
.
setAttribute
(
'
class
'
,
'
pl_node
'
);
nd
.
setAttribute
(
'
id
'
,
'
pl_
'
+
elt
.
getAttribute
(
'
id
'
)
);
...
...
@@ -545,15 +558,18 @@ function parse_playlist()
pl
.
setAttribute
(
'
title
'
,
elt
.
getAttribute
(
'
uri
'
));
pl
.
appendChild
(
document
.
createTextNode
(
elt
.
getAttribute
(
'
name
'
)
)
);
pos
.
appendChild
(
pl
);
pos
.
appendChild
(
document
.
createTextNode
(
'
'
)
);
var
del
=
document
.
createElement
(
"
a
"
);
del
.
setAttribute
(
'
href
'
,
'
javascript:pl_delete(
'
+
elt
.
getAttribute
(
'
id
'
)
+
'
)
'
);
var
delimg
=
document
.
createElement
(
"
img
"
);
delimg
.
setAttribute
(
'
src
'
,
'
images/delete_small.png
'
);
delimg
.
setAttribute
(
'
alt
'
,
'
(delete)
'
);
del
.
appendChild
(
delimg
);
pos
.
appendChild
(
del
);
if
(
elt
.
getAttribute
(
'
ro
'
)
==
'
rw
'
)
{
pos
.
appendChild
(
document
.
createTextNode
(
'
'
)
);
var
del
=
document
.
createElement
(
"
a
"
);
del
.
setAttribute
(
'
href
'
,
'
javascript:pl_delete(
'
+
elt
.
getAttribute
(
'
id
'
)
+
'
)
'
);
var
delimg
=
document
.
createElement
(
"
img
"
);
delimg
.
setAttribute
(
'
src
'
,
'
images/delete_small.png
'
);
delimg
.
setAttribute
(
'
alt
'
,
'
(delete)
'
);
del
.
appendChild
(
delimg
);
pos
.
appendChild
(
del
);
}
}
if
(
elt
.
firstChild
)
{
...
...
share/http/requests/playlist.xml
View file @
49f3fdae
...
...
@@ -35,9 +35,9 @@
<vlc
id=
"end"
/>
<vlc
id=
"if"
param1=
"pl.type value 'Node' strcmp"
/>
<vlc
id=
"rpn"
param1=
"1 +"
/>
<leaf
id=
"<vlc id="
value"
param1=
"pl.index"
/>
"
<vlc
id=
"if"
param1=
"pl.current"
/>
current="current"
<vlc
id=
"end"
/>
uri="
<vlc
id=
"value"
param1=
"pl.uri value '&' '&' str_replace"
/>
" name="
<vlc
id=
"value"
param1=
"pl.name value '&' '&' str_replace"
/>
" />
<leaf
id=
"<vlc id="
value"
param1=
"pl.index"
/>
"
<vlc
id=
"if"
param1=
"pl.current"
/>
current="current"
<vlc
id=
"end"
/>
uri="
<vlc
id=
"value"
param1=
"pl.uri value '&' '&' str_replace"
/>
" name="
<vlc
id=
"value"
param1=
"pl.name value '&' '&' str_replace"
/>
"
ro="
<vlc
id=
"value"
param1=
"pl.ro"
/>
"
/>
<vlc
id=
"else"
/>
<node
id=
"<vlc id="
value"
param1=
"pl.index"
/>
" name="
<vlc
id=
"value"
param1=
"pl.name value '&' '&' str_replace"
/>
" >
<node
id=
"<vlc id="
value"
param1=
"pl.index"
/>
" name="
<vlc
id=
"value"
param1=
"pl.name value '&' '&' str_replace"
/>
"
ro="
<vlc
id=
"value"
param1=
"pl.ro"
/>
"
>
<vlc
id=
"if"
param1=
"first_item value 0 ="
/>
<vlc
id=
"rpn"
param1=
"first_item 1 store"
/>
<vlc
id=
"end"
/>
...
...
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