* adjust the popup way of colorbox.

This commit is contained in:
chencongzhi520@gmail.com
2013-01-20 09:59:31 +00:00
parent f933c7b13a
commit fce2b8b9ff
7 changed files with 13 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
$(document).ready(function()
{
$("a.preview").colorbox({width:1000, height:600, iframe:true, transition:'elastic', speed:350, scrolling:true});
$("a.preview").colorbox({width:1000, height:550, iframe:true, transition:'none', scrolling:true});
})

View File

@@ -1,3 +1,3 @@
if($('a.iframe').size()) $("a.iframe").colorbox({width:800, height:400, iframe:true, transition:'elastic', speed:350, scrolling:true});
if($('a.manual').size()) $("a.manual").colorbox({width:1024, height:600, iframe:true, transition:'elastic', speed:350, scrolling:false});
if($('a.extension').size()) $("a.extension").colorbox({width:1024, height:480, iframe:true, transition:'elastic', speed:350, scrolling:true});
if($('a.iframe').size()) $("a.iframe").colorbox({width:800, height:400, iframe:true, transition:'none', scrolling:true});
if($('a.manual').size()) $("a.manual").colorbox({width:1024, height:600, iframe:true, transition:'none', scrolling:false});
if($('a.extension').size()) $("a.extension").colorbox({width:1024, height:480, iframe:true, transition:'none', scrolling:true});

View File

@@ -3,11 +3,11 @@ function loadStoriesAndBugs(buildID,productID)
link = createLink('release', 'ajaxGetStoriesAndBugs', 'buildID=' + buildID + '&productID=' + productID);
$('#linkStoriesAndBugs').load(link, function()
{
$("a.preview").colorbox({width:1000, height:600, iframe:true, transition:'elastic', speed:350, scrolling:true});
$("a.preview").colorbox({width:1000, height:550, iframe:true, transition:'none', scrolling:true});
})
}
$(document).ready(function()
{
$("a.preview").colorbox({width:1000, height:600, iframe:true, transition:'elastic', speed:350, scrolling:true});
$("a.preview").colorbox({width:1000, height:550, iframe:true, transition:'none', scrolling:true});
})

View File

@@ -39,7 +39,7 @@ function setPreview()
$('#preview').attr('href', storyLink);
}
$("#preview").colorbox({width:960, height:500, iframe:true, transition:'elastic', speed:350, scrolling:true});
$("#preview").colorbox({width:960, height:500, iframe:true, transition:'none', scrolling:true});
setAfter();
}

View File

@@ -15,5 +15,5 @@ function setPreview()
$(function()
{
$("#story").chosen({no_results_text: noResultsMatch});
$("#preview").colorbox({width:1000, height:600, iframe:true, transition:'elastic', speed:350, scrolling:true});
$("#preview").colorbox({width:1000, height:550, iframe:true, transition:'none', scrolling:true});
})

View File

@@ -37,12 +37,13 @@
<tr>
<th class='rowhead'><?php echo $lang->testcase->lblStory;?></th>
<td>
<div id='storyIdBox'><?php echo html::select('story', $stories, $storyID, 'class="text-1" onchange=setPreview();');?></div>
<div id='storyIdBox'><?php echo html::select('story', $stories, $storyID, 'class="text-1" onchange=setPreview();');?>
<?php if($storyID == 0): ?>
<a href='' id='preview' class='iframe hidden'><?php echo $lang->preview;?></a>
<?php else:?>
<?php echo html::a($this->createLink('story', 'view', "storyID=$storyID"), $lang->preview, '', "class='iframe' id='preview'");?>
<?php endif;?>
</div>
</td>
</tr>
<tr>

View File

@@ -1,6 +1,6 @@
if($('a.iframe').size()) $("a.iframe").colorbox({width:450, height:220, iframe:true, transition:'elastic', speed:350, scrolling:true});
if($('a.webapp').size()) $("a.webapp").colorbox({width:600, height:400, iframe:true, transition:'elastic', speed:350, scrolling:true});
if($('a.popup').size()) $("a.popup").colorbox({width:900, height:600, iframe:true, transition:'elastic', speed:350, scrolling:true});
if($('a.iframe').size()) $("a.iframe").colorbox({width:450, height:220, iframe:true, transition:'none', scrolling:true});
if($('a.webapp').size()) $("a.webapp").colorbox({width:600, height:400, iframe:true, transition:'none', scrolling:true});
if($('a.popup').size()) $("a.popup").colorbox({width:900, height:600, iframe:true, transition:'none', scrolling:true});
function popup(width, height)
{