* Fix bug #24896.
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
@@ -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'});
|
||||
|
||||
|
||||
@@ -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';?>
|
||||
|
||||
Reference in New Issue
Block a user