* adjust the width of colorbox in testcase.

This commit is contained in:
wyd621
2013-10-30 05:44:22 +00:00
parent 8aaee0ec23
commit 651d796606
3 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -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'});
})
+2 -2
View File
@@ -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
View File
@@ -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');