mirror of https://github.com/calzoneman/sync.git
Merge pull request #470 from Xaekai/3.0
Fix annoyance: Clicking Remove video scrolls to top
This commit is contained in:
commit
e51793d60c
|
@ -20,7 +20,7 @@ html(lang="en")
|
|||
b.caret
|
||||
ul.dropdown-menu
|
||||
li: a(href="#" onclick="javascript:chatOnly()") Chat Only
|
||||
li: a(href="#" onclick="javascript:removeVideo()") Remove Video
|
||||
li: a(href="#" onclick="javascript:removeVideo(event)") Remove Video
|
||||
mixin navloginlogout(cname)
|
||||
section#mainpage
|
||||
.container
|
||||
|
|
|
@ -1730,7 +1730,7 @@ function handleVideoResize() {
|
|||
$(window).resize(handleWindowResize);
|
||||
handleWindowResize();
|
||||
|
||||
function removeVideo() {
|
||||
function removeVideo(event) {
|
||||
try {
|
||||
PLAYER.setVolume(0);
|
||||
if (PLAYER.type === "rv") {
|
||||
|
@ -1741,6 +1741,7 @@ function removeVideo() {
|
|||
|
||||
$("#videowrap").remove();
|
||||
$("#chatwrap").removeClass("col-lg-5 col-md-5").addClass("col-md-12");
|
||||
if (event) event.preventDefault();
|
||||
}
|
||||
|
||||
/* channel administration stuff */
|
||||
|
|
Loading…
Reference in New Issue