* adjust the width of colorbox in testcase.
This commit is contained in:
@@ -11,7 +11,7 @@ function browseBySearch(active)
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
setModal4List('runCase', 'caseList', function(){$(".results").colorbox({width:900, height:550, iframe:true, transition:'none'});});
|
||||
setModal4List('runCase', 'caseList', function(){$(".results").colorbox({width:1024, height:550, iframe:true, transition:'none'});}, 1024);
|
||||
$('#' + browseType + 'Tab').addClass('active');
|
||||
$('#module' + moduleID).addClass('active');
|
||||
if(browseType == 'bysearch') ajaxGetSearchForm();
|
||||
@@ -19,5 +19,5 @@ $(document).ready(function()
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(".results").colorbox({width:900, height:550, iframe:true, transition:'none'});
|
||||
$(".results").colorbox({width:1024, height:550, iframe:true, transition:'none'});
|
||||
})
|
||||
|
||||
@@ -20,7 +20,7 @@ function browseBySearch(active)
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
setModal4List('runCase', 'caseList', function(){$(".results").colorbox({width:900, height:550, iframe:true, transition:'none'});});
|
||||
setModal4List('runCase', 'caseList', function(){$(".results").colorbox({width:1024, height:550, iframe:true, transition:'none'});}, 1024);
|
||||
$('#' + browseType + 'Tab').addClass('active');
|
||||
$('#module' + moduleID).addClass('active');
|
||||
if(browseType == 'bysearch') ajaxGetSearchForm();
|
||||
@@ -28,7 +28,7 @@ $(document).ready(function()
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("a.iframe").colorbox({width:900, height:550, iframe:true, transition:'none'});
|
||||
$("a.iframe").colorbox({width:1024, height:550, iframe:true, transition:'none'});
|
||||
$('#' + browseType + 'Tab').addClass('active');
|
||||
$('#module' + moduleID).addClass('active');
|
||||
});
|
||||
|
||||
+6
-4
@@ -820,12 +820,14 @@ function selectItem(SelectID)
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function setModal4List(colorboxClass, replaceID, callback)
|
||||
function setModal4List(colorboxClass, replaceID, callback, width, height)
|
||||
{
|
||||
if(typeof(width) == 'undefined') width = 900
|
||||
if(typeof(height) == 'undefined') height = 500
|
||||
$('.' + colorboxClass).colorbox(
|
||||
{
|
||||
width: 900,
|
||||
height: 500,
|
||||
width: width,
|
||||
height: height,
|
||||
iframe: true,
|
||||
transition: 'none',
|
||||
|
||||
@@ -840,7 +842,7 @@ function setModal4List(colorboxClass, replaceID, callback)
|
||||
$('#tmpDiv').load(link + ' #' + replaceID, function()
|
||||
{
|
||||
$('#tmpDiv').replaceWith($('#tmpDiv').html());
|
||||
setModal4List(colorboxClass, replaceID, callback);
|
||||
setModal4List(colorboxClass, replaceID, callback, width, height);
|
||||
|
||||
try{$('.colored').colorize();}catch(err){}
|
||||
$('tfoot td').css('background', 'white').unbind('click').unbind('hover');
|
||||
|
||||
Reference in New Issue
Block a user