mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server+client: added sound flag to video posts
This commit is contained in:
committed by
Marcin Kurczewski
parent
c8fe0fcdff
commit
2235a72d2f
@ -331,9 +331,7 @@ class PostEditSidebarControl extends events.EventTarget {
|
||||
.value.toLowerCase() :
|
||||
undefined,
|
||||
|
||||
flags: this._loopVideoInputNode ?
|
||||
(this._loopVideoInputNode.checked ? ['loop'] : []) :
|
||||
undefined,
|
||||
flags: this._videoFlags,
|
||||
|
||||
tags: this._tagInputNode ?
|
||||
misc.splitByWhitespace(this._tagInputNode.value) :
|
||||
@ -375,6 +373,18 @@ class PostEditSidebarControl extends events.EventTarget {
|
||||
return this._formNode.querySelector('.flags input[name=loop]');
|
||||
}
|
||||
|
||||
get _soundVideoInputNode() {
|
||||
return this._formNode.querySelector('.flags input[name=sound]');
|
||||
}
|
||||
|
||||
get _videoFlags() {
|
||||
if (!this._loopVideoInputNode) return undefined;
|
||||
let ret = [];
|
||||
if (this._loopVideoInputNode.checked) ret.push('loop');
|
||||
if (this._soundVideoInputNode.checked) ret.push('sound');
|
||||
return ret;
|
||||
}
|
||||
|
||||
get _relationsInputNode() {
|
||||
return this._formNode.querySelector('.relations input');
|
||||
}
|
||||
|
Reference in New Issue
Block a user