Prevent agent list flickering when initial loading
</div>
</@security.authorize>
- <table class="table table-striped table-bordered ellipsis" id="agent_table">
+ <table class="table table-striped table-bordered ellipsis" id="agent_table" style="visibility: hidden;">
<colgroup>
<@security.authorize access="hasRole('A')">
<col width="30">
"sPrevious": "<@spring.message 'common.paging.previous'/>",
"sNext": "<@spring.message 'common.paging.next'/>"
}
- }
+ },
+ "fnInitComplete": finalizeDataTablesLoading($agentTable)
});
removeClick();
"<@spring.message 'agent.message.disapprove'/>"
).call();
});
+ <#else>
+ finalizeDataTablesLoading($agentTable);
</#if>
$("#stop_agent_button").click(function () {
});
});
+ function finalizeDataTablesLoading($agentTable) {
+ $agentTable.css('visibility', 'visible');
+ }
+
function cleanup() {
var ajaxObj = new AjaxPostObj("/agent/api?action=cleanup",
{},
