diff --git a/module/git/model.php b/module/git/model.php index f0bdcd2218..1de1f15cff 100644 --- a/module/git/model.php +++ b/module/git/model.php @@ -556,8 +556,8 @@ class gitModel extends model foreach($actionFiles as $file) { $param = array('url' => helper::safe64Encode($repoRoot . $file), 'revision' => $log->revision); - $catLink = trim(html::a(helper::createLink('git', 'cat', $param, 'html'), 'view', '', "class='gitlink'")); - $diffLink = trim(html::a(helper::createLink('git', 'diff', $param, 'html'), 'diff', '', "class='gitlink'")); + $catLink = trim(html::a(helper::createLink('git', 'cat', $param, 'html'), 'view', '', "class='repolink'")); + $diffLink = trim(html::a(helper::createLink('git', 'diff', $param, 'html'), 'diff', '', "class='repolink'")); $diff .= $action . " " . $file . " $catLink "; $diff .= $action == 'M' ? "$diffLink\n" : "\n" ; } diff --git a/module/svn/model.php b/module/svn/model.php index cafe5e2874..b5da380950 100644 --- a/module/svn/model.php +++ b/module/svn/model.php @@ -549,8 +549,8 @@ class svnModel extends model foreach($actionFiles as $file) { $param = array('url' => helper::safe64Encode($repoRoot . $file), 'revision' => $log->revision); - $catLink = trim(html::a(helper::createLink('svn', 'cat', $param, 'html'), 'view', '', "class='svnlink'")); - $diffLink = trim(html::a(helper::createLink('svn', 'diff', $param, 'html'), 'diff', '', "class='svnlink'")); + $catLink = trim(html::a(helper::createLink('svn', 'cat', $param, 'html'), 'view', '', "class='repolink'")); + $diffLink = trim(html::a(helper::createLink('svn', 'diff', $param, 'html'), 'diff', '', "class='repolink'")); $diff .= $action . " " . $file . " $catLink "; $diff .= $action == 'M' ? "$diffLink\n" : "\n" ; } diff --git a/www/js/my.full.js b/www/js/my.full.js index c7d22655a9..f61f2d8110 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -531,14 +531,14 @@ function setImageSize(image, maxWidth) } /** - * Set the subversion link. + * Set the repo link. * * @access public * @return void */ -function setSubversionLink() +function setRepoLink() { - if($('.svnlink').size()) $('.svnlink').colorbox({width:960, height:600, iframe:true, transition:'elastic', speed:350, scrolling:true}); + if($('.repolink').size()) $('.repolink').colorbox({width:960, height:600, iframe:true, transition:'elastic', speed:350, scrolling:true}); } /* Set the colorbox of export. */ @@ -917,7 +917,7 @@ $(document).ready(function() setAbout(); setQRCode(); setExport(); - setSubversionLink(); + setRepoLink(); autoCheck(); toggleSearch();