* refactor export modal trigger.
This commit is contained in:
@@ -643,8 +643,8 @@ class gitModel extends model
|
||||
{
|
||||
foreach($actionFiles as $file)
|
||||
{
|
||||
$catLink = trim(html::a($this->buildURL('cat', $repoRoot . $file, $log->revision), 'view', '', "class='repolink'"));
|
||||
$diffLink = trim(html::a($this->buildURL('diff', $repoRoot . $file, $log->revision), 'diff', '', "class='repolink'"));
|
||||
$catLink = trim(html::a($this->buildURL('cat', $repoRoot . $file, $log->revision), 'view', '', "class='iframe' data-width='960'"));
|
||||
$diffLink = trim(html::a($this->buildURL('diff', $repoRoot . $file, $log->revision), 'diff', '', "class='iframe' data-width='960'"));
|
||||
$diff .= $action . " " . $file . " $catLink ";
|
||||
$diff .= $action == 'M' ? "$diffLink\n" : "\n" ;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<a class="btn btn-link querybox-toggle" id="bysearchTab"><i class="icon icon-search muted"></i> <?php echo $lang->bug->search;?></a>
|
||||
</div>
|
||||
<div class="btn-toolbar pull-right">
|
||||
<?php common::printLink('bug', 'export', "productID=$productID&orderBy=$orderBy", "<i class='icon icon-export'> </i>" . $lang->bug->export, '', "class='btn btn-link export iframe'");?>
|
||||
<?php common::printLink('bug', 'export', "productID=$productID&orderBy=$orderBy", "<i class='icon icon-export muted'> </i>" . $lang->bug->export, '', "class='btn btn-link export'");?>
|
||||
<?php common::printLink('bug', 'create', "productID=$productID&branch=$branchID&extra=projectID=$project->id", "<i class='icon icon-plus'> </i>" . $lang->bug->create, '', "class='btn btn-primary'");?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -611,8 +611,8 @@ class svnModel extends model
|
||||
{
|
||||
foreach($actionFiles as $file)
|
||||
{
|
||||
$catLink = trim(html::a($this->buildURL('cat', $repoRoot . $file, $log->revision), 'view', '', "class='repolink'"));
|
||||
$diffLink = trim(html::a($this->buildURL('diff', $repoRoot . $file, $log->revision), 'diff', '', "class='repolink'"));
|
||||
$catLink = trim(html::a($this->buildURL('cat', $repoRoot . $file, $log->revision), 'view', '', "class='iframe' data-width='960'"));
|
||||
$diffLink = trim(html::a($this->buildURL('diff', $repoRoot . $file, $log->revision), 'diff', '', "class='iframe' data-width='960'"));
|
||||
$diff .= $action . " " . $file . " $catLink ";
|
||||
$diff .= $action == 'M' ? "$diffLink\n" : "\n" ;
|
||||
}
|
||||
|
||||
+35
-35
@@ -456,17 +456,17 @@ function setImageSize(image, maxWidth)
|
||||
$(image).wrap('<a href="' + $(image).attr('src') + '" target="_blank"></a>');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the modal trigger to link.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function setModalTriggerLink()
|
||||
{
|
||||
$('.repolink').modalTrigger({width:960, type:'iframe'});
|
||||
$('.export').modalTrigger({width:800, type:'iframe', afterShown: setCheckedCookie});
|
||||
}
|
||||
// /**
|
||||
// * Set the modal trigger to link.
|
||||
// *
|
||||
// * @access public
|
||||
// * @return void
|
||||
// */
|
||||
// function setModalTriggerLink()
|
||||
// {
|
||||
// $('.repolink').modalTrigger({width:960, type:'iframe'});
|
||||
// $('.export').modalTrigger({width:800, type:'iframe', afterShown: setCheckedCookie});
|
||||
// }
|
||||
|
||||
/**
|
||||
* Set mailto list from a contact list..
|
||||
@@ -925,29 +925,29 @@ function setModal4List(triggerClass, replaceID, callback, width)
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Set checked in cookie.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function setCheckedCookie()
|
||||
{
|
||||
var checkeds = '';
|
||||
$(':checkbox').each(function()
|
||||
{
|
||||
if($(this).attr('checked'))
|
||||
{
|
||||
if(!isNaN($(this).val()))
|
||||
{
|
||||
var checkedVal = parseInt($(this).val());
|
||||
if(checkedVal != 0) checkeds = checkeds + checkedVal + ',';
|
||||
}
|
||||
}
|
||||
})
|
||||
if(checkeds != '') checkeds = checkeds.substring(0, checkeds.length - 1);
|
||||
$.cookie('checkedItem', checkeds, {expires:config.cookieLife, path:config.webRoot});
|
||||
}
|
||||
// /**
|
||||
// * Set checked in cookie.
|
||||
// *
|
||||
// * @access public
|
||||
// * @return void
|
||||
// */
|
||||
// function setCheckedCookie()
|
||||
// {
|
||||
// var checkeds = '';
|
||||
// $(':checkbox').each(function()
|
||||
// {
|
||||
// if($(this).attr('checked'))
|
||||
// {
|
||||
// if(!isNaN($(this).val()))
|
||||
// {
|
||||
// var checkedVal = parseInt($(this).val());
|
||||
// if(checkedVal != 0) checkeds = checkeds + checkedVal + ',';
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// if(checkeds != '') checkeds = checkeds.substring(0, checkeds.length - 1);
|
||||
// $.cookie('checkedItem', checkeds, {expires:config.cookieLife, path:config.webRoot});
|
||||
// }
|
||||
|
||||
/**
|
||||
* Set table behavior
|
||||
@@ -1632,7 +1632,7 @@ $(document).ready(function()
|
||||
//setRequiredFields();
|
||||
setPlaceholder();
|
||||
|
||||
setModalTriggerLink();
|
||||
// setModalTriggerLink();
|
||||
|
||||
// checkTable();
|
||||
// toggleSearch();
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user