This commit is contained in:
liumengyi
2022-07-13 11:23:50 +08:00
parent aa81fd6741
commit 424653ac7f
3 changed files with 14 additions and 9 deletions
+2
View File
@@ -28,6 +28,8 @@ class caselibModel extends model
if(!empty($products) and $this->session->product) $this->loadModel('qa')->setMenu($products, $this->session->product);
if(empty($products)) $this->loadModel('qa')->setMenu(array(0 => ''), 0);
$this->lang->qa->menu->caselib['subModule'] .= ',testcase';
if($libraries)
{
$libName = '';
+11
View File
@@ -1,5 +1,16 @@
$(document).ready(function()
{
if(isLibCase)
{
$('#subNavbar [data-id=testcase]').removeClass('active');
$('#navbar [data-id=testcase]').removeClass('active');
}
else
{
$('#subNavbar [data-id=testcase]').addClass('active');
$('#navbar [data-id=testcase]').addClass('active');
}
if(config.onlybody != 'yes')$(".runCase").modalTrigger({width:'90%', type:'iframe', afterHide:function(){parent.location.href=parent.location.href;}});
if(config.onlybody != 'yes')$(".results").modalTrigger({width:'90%', type:'iframe'});
+1 -9
View File
@@ -366,14 +366,6 @@
<?php
js::set('fullscreen', $lang->fullscreen);
js::set('retrack', $lang->retrack);
js::set('isLibCase', $isLibCase);
?>
<?php if(!$isLibCase):?>
<script>
$(function()
{
$('#subNavbar [data-id=testcase]').addClass('active');
$('#navbar [data-id=testcase]').addClass('active');
})
</script>
<?php endif;?>
<?php include '../../common/view/footer.html.php';?>