Files
EasySoft-ZenTaoPMS/module/testcase/js/browse.js
T
2022-12-30 02:12:57 +00:00

51 lines
1.1 KiB
JavaScript

/**
* Confirm batch delete cases.
*
* @param string $actionLink
* @access public
* @return void
*/
function confirmBatchDelete(actionLink)
{
if(confirm(batchDelete)) setFormAction(actionLink);
return false;
}
$(function()
{
if($('#caseList thead th.c-title').width() < 150) $('#caseList thead th.c-title').width(150);
/* The display of the adjusting sidebarHeader is synchronized with the sidebar. */
$(".sidebar-toggle").click(function()
{
$("#sidebarHeader").toggle("fast");
});
if($("main").is(".hide-sidebar")) $("#sidebarHeader").hide();
$('#importToLib').on('click', function()
{
var storyIdList = '';
$("input[name^='caseIDList']:checked").each(function()
{
storyIdList += $(this).val() + ',';
$('#caseIdList').val(storyIdList);
});
});
});
var runCase = false;
/**
* Define triggerModal hidden event.
*
* @access public
* @return void
*/
function triggerHidden()
{
$('#triggerModal').on('hidden.zui.modal', function()
{
if(runCase == true) window.location.reload();
});
}