Skip to content

Commit 35c7664

Browse files
committed
QueueExecution page refresh the list only once for performance improvement.
1 parent 8db6efa commit 35c7664

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

source/src/main/webapp/TestCaseExecutionQueueList.jsp

+5-5
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959

6060
<div class="center tab-pane fade" id="tabDetails">
6161
<div class="panel panel-default">
62-
<div class="panel-body" id="executionList">
63-
<form id="massActionForm" name="massActionForm" title="" role="form">
62+
<form id="massActionForm" name="massActionForm" title="" role="form">
63+
<div class="panel-body" id="executionList">
6464
<table id="executionsTable" class="table table-bordered table-hover display" name="executionsTable"></table>
65-
</form>
66-
<div class="marginBottom20"></div>
67-
</div>
65+
<div class="marginBottom20"></div>
66+
</div>
67+
</form>
6868
</div>
6969
</div>
7070

source/src/main/webapp/js/pages/TestCaseExecutionQueueList.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
* You should have received a copy of the GNU General Public License
1818
* along with Cerberus. If not, see <http://www.gnu.org/licenses/>.
1919
*/
20+
21+
22+
var tabClicked = false;
23+
2024
$.when($.getScript("js/global/global.js")).then(function () {
2125
$(document).ready(function () {
2226
initPage();
@@ -118,16 +122,22 @@ function initPage() {
118122

119123
switch ($(e.target).attr("href")) {
120124
case "#tabDetails":
121-
refreshTable();
125+
if (tabClicked) {
126+
refreshTable();
127+
tabClicked = true;
128+
}
122129
break;
123130
case "#tabFollowUp":
124131
displayAndRefresh_followup();
132+
tabClicked = true;
125133
break;
126134
case "#tabJobStatus":
127135
displayAndRefresh_jobStatus();
136+
tabClicked = true;
128137
break;
129138
case "#tabQueueHistory":
130139
loadStatGraph();
140+
tabClicked = true;
131141
break;
132142
}
133143
});

0 commit comments

Comments
 (0)