|
@ -308,7 +308,8 @@ var onLogBufferRead = function(response) { |
|
|
|
|
|
|
|
|
// Neuter rows for which a tab does not exist anymore
|
|
|
// Neuter rows for which a tab does not exist anymore
|
|
|
// TODO: sort to avoid using indexOf
|
|
|
// TODO: sort to avoid using indexOf
|
|
|
var rowVoided = false; |
|
|
|
|
|
|
|
|
var autoDeleteVoidRows = vAPI.localStorage.getItem('loggerAutoDeleteVoidRows'); |
|
|
|
|
|
var rowVoided = false, trs; |
|
|
for ( var tabId in allTabIds ) { |
|
|
for ( var tabId in allTabIds ) { |
|
|
if ( allTabIds.hasOwnProperty(tabId) === false ) { |
|
|
if ( allTabIds.hasOwnProperty(tabId) === false ) { |
|
|
continue; |
|
|
continue; |
|
@ -316,11 +317,16 @@ var onLogBufferRead = function(response) { |
|
|
if ( response.tabIds.hasOwnProperty(tabId) ) { |
|
|
if ( response.tabIds.hasOwnProperty(tabId) ) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
uDom('.tab_' + tabId).removeClass('canMtx'); |
|
|
|
|
|
|
|
|
trs = uDom('.tab_' + tabId); |
|
|
|
|
|
if ( autoDeleteVoidRows ) { |
|
|
|
|
|
toJunkyard(trs); |
|
|
|
|
|
} else { |
|
|
|
|
|
trs.removeClass('canMtx'); |
|
|
|
|
|
rowVoided = true; |
|
|
|
|
|
} |
|
|
if ( tabId === popupManager.tabId ) { |
|
|
if ( tabId === popupManager.tabId ) { |
|
|
popupManager.toggleOff(); |
|
|
popupManager.toggleOff(); |
|
|
} |
|
|
} |
|
|
rowVoided = true; |
|
|
|
|
|
} |
|
|
} |
|
|
allTabIds = response.tabIds; |
|
|
allTabIds = response.tabIds; |
|
|
|
|
|
|
|
@ -504,6 +510,16 @@ var rowFilterer = (function() { |
|
|
|
|
|
|
|
|
/******************************************************************************/ |
|
|
/******************************************************************************/ |
|
|
|
|
|
|
|
|
|
|
|
var toJunkyard = function(trs) { |
|
|
|
|
|
trs.remove(); |
|
|
|
|
|
var i = trs.length; |
|
|
|
|
|
while ( i-- ) { |
|
|
|
|
|
trJunkyard.push(trs.nodeAt(i)); |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/ |
|
|
|
|
|
|
|
|
var clearBuffer = function() { |
|
|
var clearBuffer = function() { |
|
|
var tbody = document.querySelector('#content tbody'); |
|
|
var tbody = document.querySelector('#content tbody'); |
|
|
var tr; |
|
|
var tr; |
|
|