Fix imprint, terms and credit without share (datarhei/restreamer#529)
This commit is contained in:
parent
7afd632544
commit
30751629fd
@ -2,6 +2,7 @@
|
||||
|
||||
## v1.7.0 > v1.x.x
|
||||
- Add Add stream key field and protocol detection to RTMP publication service
|
||||
- Fix imprint, terms and credit without share ([#525](https://github.com/datarhei/restreamer/issues/529))
|
||||
- Fix proxy error on the playersite ([#525](https://github.com/datarhei/restreamer/issues/525))
|
||||
- Fix saving RTMP advanced options ([#518](https://github.com/datarhei/restreamer/issues/518))
|
||||
- Fix help buttons for other languages than English and German ([#24](https://github.com/datarhei/restreamer-ui/issues/24))
|
||||
|
||||
@ -619,6 +619,7 @@
|
||||
{{/if}}{{/if}}
|
||||
|
||||
<script>
|
||||
{{#if share}}
|
||||
var modal_share = document.getElementById("modal-share");
|
||||
var btn_share = document.getElementById("btn-share");
|
||||
var close_share = document.getElementById("close-share");
|
||||
@ -628,6 +629,7 @@
|
||||
close_share.onclick = function() {
|
||||
modal_share.style.display = "none";
|
||||
}
|
||||
{{/if}}
|
||||
{{#if imprint_html}}
|
||||
var modal_imprint = document.getElementById("modal-imprint");
|
||||
var btn_imprint = document.getElementById("btn-imprint");
|
||||
@ -664,7 +666,9 @@
|
||||
var close = document.getElementsByClassName("close")[0];
|
||||
|
||||
close.onclick = function() {
|
||||
{{#if share}}
|
||||
modal_share.style.display = "none";
|
||||
{{/if}}
|
||||
{{#if imprint_html}}
|
||||
modal_imprint.style.display = "none";
|
||||
{{/if}}
|
||||
@ -676,20 +680,29 @@
|
||||
{{/if}}{{/if}}
|
||||
}
|
||||
window.onclick = function(event) {
|
||||
if (event.target == modal_share) {
|
||||
modal_share.style.display = "none";
|
||||
{{#if imprint_html}}
|
||||
} else if (event.target == modal_imprint) {
|
||||
modal_imprint.style.display = "none";
|
||||
{{/if}}
|
||||
{{#if terms_html}}
|
||||
} else if (event.target == modal_terms) {
|
||||
modal_terms.style.display = "none";
|
||||
{{/if}}
|
||||
{{#if channel_creator_name}}{{#if channel_creator_description_html}}
|
||||
} else if (event.target == modal_creator) {
|
||||
modal_creator.style.display = "none";
|
||||
{{/if}}{{/if}}
|
||||
switch(event.target) {
|
||||
{{#if share}}
|
||||
case modal_share:
|
||||
modal_share.style.display = "none";
|
||||
break;
|
||||
{{/if}}
|
||||
{{#if imprint_html}}
|
||||
case modal_imprint:
|
||||
modal_imprint.style.display = "none";
|
||||
break;
|
||||
{{/if}}
|
||||
{{#if terms_html}}
|
||||
case modal_terms:
|
||||
modal_terms.style.display = "none";
|
||||
break;
|
||||
{{/if}}
|
||||
{{#if channel_creator_name}}{{#if channel_creator_description_html}}
|
||||
case modal_creator:
|
||||
modal_creator.style.display = "none";
|
||||
break;
|
||||
{{/if}}{{/if}}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user