* Fix bug #37290.
This commit is contained in:
@@ -95,7 +95,9 @@ window.checkedChange = function(changes)
|
||||
*/
|
||||
window.diffClick = function()
|
||||
{
|
||||
var checkedIds = getCurrentCheckedIds();
|
||||
var checkedIds = getCurrentCheckedIds();
|
||||
if(checkedIds.length < 2) return;
|
||||
|
||||
var newDiffLink = diffLink.replace('{oldRevision}', revisionMap[checkedIds[1]]);
|
||||
newDiffLink = newDiffLink.replace('{newRevision}', revisionMap[checkedIds[0]]);
|
||||
|
||||
|
||||
@@ -74,7 +74,9 @@ function initRevisionMap(data)
|
||||
*/
|
||||
window.diffClick = function()
|
||||
{
|
||||
var checkedIds = getCurrentCheckedIds();
|
||||
var checkedIds = getCurrentCheckedIds();
|
||||
if(checkedIds.length < 2) return;
|
||||
|
||||
var newDiffLink = diffLink.replace('{oldRevision}', revisionMap[checkedIds[1]]);
|
||||
newDiffLink = newDiffLink.replace('{newRevision}', revisionMap[checkedIds[0]]);
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ $commentsTableData = initTableData($revisions, $config->repo->commentDtable->fie
|
||||
|
||||
$readAllLink = $this->repo->createLink('log', "repoID=$repoID&objectID=$objectID&entry=" . $encodePath . "&revision=HEAD&type=$logType");
|
||||
|
||||
$footToolbar['items'][] = array('text' => $lang->repo->diff, 'class' => "btn primary size-sm btn-diff", 'btnType' => 'primary', 'onClick' => jsRaw('window.diffClick'));
|
||||
$footToolbar['items'][] = array('text' => $lang->repo->diff, 'className' => "btn primary size-sm btn-diff", 'btnType' => 'primary', 'onClick' => jsRaw('window.diffClick'));
|
||||
$footToolbar['items'][] = array('text' => $lang->repo->allLog, 'url' => $readAllLink);
|
||||
|
||||
sidebar
|
||||
|
||||
@@ -53,7 +53,7 @@ $config->repo->logDtable->fieldList['revision']['link'] = array('module' => 'rep
|
||||
|
||||
$logs = initTableData($logs, $config->repo->logDtable->fieldList);
|
||||
|
||||
$footToolbar['items'][] = array('text' => $lang->repo->diff, 'class' => "btn primary size-sm btn-diff", 'btnType' => 'primary', 'onClick' => jsRaw('window.diffClick'));
|
||||
$footToolbar['items'][] = array('text' => $lang->repo->diff, 'className' => "btn primary size-sm btn-diff", 'btnType' => 'primary', 'onClick' => jsRaw('window.diffClick'));
|
||||
|
||||
featureBar(
|
||||
backBtn
|
||||
|
||||
Reference in New Issue
Block a user