* adjust the popup way of colorbox.
This commit is contained in:
@@ -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});
|
||||
})
|
||||
|
||||
@@ -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});
|
||||
|
||||
@@ -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});
|
||||
})
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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});
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user