aboutsummaryrefslogtreecommitdiffhomepage
path: root/js
diff options
context:
space:
mode:
authorCiaran Gallagher <[email protected]>2019-11-30 18:30:35 +0000
committerCiaran Gallagher <[email protected]>2019-11-30 18:30:35 +0000
commit190bc76a470b9eae702f9672782b4ff15ddcb9ce (patch)
tree47d8f5fcb157ea4e1cc26e37f82b173df025584e /js
parent909cbdb69d31a34ab37d33c0cb61f5cbe1db5d32 (diff)
downloadpasta-190bc76a470b9eae702f9672782b4ff15ddcb9ce.tar.gz
pasta-190bc76a470b9eae702f9672782b4ff15ddcb9ce.zip
Style and animation transitions
Diffstat (limited to 'js')
-rw-r--r--js/main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/main.js b/js/main.js
index 94ba542..4dadb2e 100644
--- a/js/main.js
+++ b/js/main.js
@@ -360,11 +360,11 @@ async function setAudioStream(partsId, streamId, row) {
},
"success": (data) => {
//console.log("success");
- $(row).siblings().removeClass("table-active").removeClass("table-success");
+ $(row).siblings().removeClass("table-active");
$(row).addClass("table-active").addClass("success-transition");
- setTimeout(function() {
+ setTimeout(() => {
$(row).removeClass('success-transition');
- }, 100);
+ }, 1500);
},
"error": (data) => {
console.log("ERROR L283");
@@ -526,11 +526,11 @@ async function setSubtitleStream(partsId, streamId, row) {
},
"success": (data) => {
//console.log("success");
- $(row).siblings().removeClass("table-active").removeClass("table-success");
+ $(row).siblings().removeClass("table-active");
$(row).addClass("table-active").addClass("success-transition");
- setTimeout(function() {
+ setTimeout(() => {
$(row).removeClass('success-transition');
- }, 100);
+ }, 1500);
},
"error": (data) => {
console.log("ERROR L449");