Browse Source

RHS (video pane) collapse/expand feature

Vijayakrishnan 5 năm trước cách đây
mục cha
commit
e647a788bf
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      public/js/mc.js

+ 4 - 0
public/js/mc.js

@@ -12,6 +12,10 @@ $(document).ready(function() {
             icon.removeClass().addClass('fa fa-arrow-right');
         }
     });
+    var body = $(window.top.document.body), icon = $(this).find('i');
+    if(body.is('.stag_rhs_collapsed')) {
+        icon.removeClass().addClass('fa fa-arrow-left');
+    }
 });
 function openInRHS(_url) {
     window.top.showRHS();