diff --git a/module/bug/js/browse.ui.js b/module/bug/js/browse.ui.js index 28ffda5ca1..74d32c57aa 100644 --- a/module/bug/js/browse.ui.js +++ b/module/bug/js/browse.ui.js @@ -92,10 +92,11 @@ window.insertListToDoc = function() }); } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - if(!idList?.length || this._rendered) return; - this._rendered = true; + if(!idList?.length || firstRendered) return; + firstRendered = true; const dtable = zui.DTable.query($('#bugs')); dtable.$.toggleCheckRows(idList.split(','), true); } diff --git a/module/caselib/js/browse.ui.js b/module/caselib/js/browse.ui.js index fdc8ef191c..0e34cb13c3 100644 --- a/module/caselib/js/browse.ui.js +++ b/module/caselib/js/browse.ui.js @@ -51,10 +51,11 @@ window.onRenderCell = function(result, {row, col}) return result; } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - if(!idList?.length || this._rendered) return; - this._rendered = true; + if(!idList?.length || firstRendered) return; + firstRendered = true; const dtable = zui.DTable.query($('#caselib')); dtable.$.toggleCheckRows(idList.split(','), true); } diff --git a/module/execution/js/story.ui.js b/module/execution/js/story.ui.js index 4e26df6d42..d89780f725 100644 --- a/module/execution/js/story.ui.js +++ b/module/execution/js/story.ui.js @@ -201,10 +201,11 @@ window.insertListToDoc = function() }); } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - if(!idList?.length || this._rendered) return; - this._rendered = true; + if(!idList?.length || firstRendered) return; + firstRendered = true; const dtable = zui.DTable.query($('#table-execution-story')); dtable.$.toggleCheckRows(idList.split(','), true); } diff --git a/module/execution/js/task.ui.js b/module/execution/js/task.ui.js index e7cf74ee51..324877aa2d 100644 --- a/module/execution/js/task.ui.js +++ b/module/execution/js/task.ui.js @@ -224,10 +224,11 @@ window.insertListToDoc = function() }); } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - if(!idList?.length || this._rendered) return; - this._rendered = true; + if(!idList?.length || firstRendered) return; + firstRendered = true; const dtable = zui.DTable.query($('#tasks')); dtable.$.toggleCheckRows(idList.split(','), true); } diff --git a/module/product/js/browse.ui.js b/module/product/js/browse.ui.js index f62d061ddd..e5f7db9bd3 100644 --- a/module/product/js/browse.ui.js +++ b/module/product/js/browse.ui.js @@ -224,10 +224,11 @@ window.insertListToDoc = function() }); } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - if(!idList?.length || this._rendered) return; - this._rendered = true; + if(!idList?.length || firstRendered) return; + firstRendered = true; const dtable = zui.DTable.query($('#stories')); dtable.$.toggleCheckRows(idList.split(','), true); } diff --git a/module/productplan/js/browse.ui.js b/module/productplan/js/browse.ui.js index a03aadf095..54d31909db 100644 --- a/module/productplan/js/browse.ui.js +++ b/module/productplan/js/browse.ui.js @@ -378,10 +378,11 @@ window.insertListToDoc = function() }); } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - - if(!idList?.length || this._rendered) return; + if(!idList?.length || firstRendered) return; + firstRendered = true; this._rendered = true; const dtable = zui.DTable.query($('#productPlans')); dtable.$.toggleCheckRows(idList.split(','), true); diff --git a/module/productplan/js/bug.ui.js b/module/productplan/js/bug.ui.js index 96a46156cb..46c0d2875c 100644 --- a/module/productplan/js/bug.ui.js +++ b/module/productplan/js/bug.ui.js @@ -27,10 +27,11 @@ window.insertListToDoc = function() }); } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - if(!idList?.length || this._rendered) return; - this._rendered = true; + if(!idList?.length || firstRendered) return; + firstRendered = true; const dtable = zui.DTable.query($('#bugs')); dtable.$.toggleCheckRows(idList.split(','), true); } diff --git a/module/productplan/js/story.ui.js b/module/productplan/js/story.ui.js index de5c4c34fd..c4fe34b340 100644 --- a/module/productplan/js/story.ui.js +++ b/module/productplan/js/story.ui.js @@ -26,10 +26,11 @@ window.insertListToDoc = function() }); } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - if(!idList?.length || this._rendered) return; - this._rendered = true; + if(!idList?.length || firstRendered) return; + firstRendered = true; const dtable = zui.DTable.query($('#stories')); dtable.$.toggleCheckRows(idList.split(','), true); } diff --git a/module/projectstory/js/story.ui.js b/module/projectstory/js/story.ui.js index eb1feab6e3..77c5b21db0 100644 --- a/module/projectstory/js/story.ui.js +++ b/module/projectstory/js/story.ui.js @@ -42,10 +42,11 @@ window.insertListToDoc = function() }); } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - if(!idList?.length || this._rendered) return; - this._rendered = true; + if(!idList?.length || firstRendered) return; + firstRendered = true; const dtable = zui.DTable.query($('#stories')); dtable.$.toggleCheckRows(idList.split(','), true); } diff --git a/module/testcase/js/browse.ui.js b/module/testcase/js/browse.ui.js index 13e6405514..b55edcfd78 100644 --- a/module/testcase/js/browse.ui.js +++ b/module/testcase/js/browse.ui.js @@ -324,10 +324,11 @@ window.insertListToDoc = function() }); } +window.firstRendered = false; window.toggleCheckRows = function(idList) { - if(!idList?.length || this._rendered) return; - this._rendered = true; + if(!idList?.length || firstRendered) return; + firstRendered = true; const dtable = zui.DTable.query($('#testcases')); dtable.$.toggleCheckRows(idList.split(','), true); }