js/core/file.js
// Check if tab is already active
Check if tab is already active
Check if tab is already active
function isActive(file){
    var tablinks = $(".tab-link");
    if (tablinks[findItemInArray(files, file)] !== undefined) {
        if (tablinks[findItemInArray(files, file)].className === "tab-link active") {
            return true;
        }
    } else {
      return false;
    }
  }
function isActive ( file ) { var tablinks = $ ( ".tab-link" ) ; if ( tablinks [ findItemInArray ( files , file ) ] !== undefined ) { if ( tablinks [ findItemInArray ( files , file ) ] . className === "tab-link active" ) { return true ; } } else { return false ; } }
Check if tab is already active
Check if tab is already active