Skip to content

Commit

Permalink
webui: introduce formatJobId function
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Mar 6, 2020
1 parent af46535 commit 35a5a5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webui/module/Job/view/job/job/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ $this->headTitle($title);
}

}

function formatJobId(value) {
return '<a href="<?php echo $this->basePath() . '/job/details/'; ?>'+value+'" title="<?php echo $this->translate("View Job Details"); ?>">'+value+'</a>';
}
function attachJobTable() {
jobtable = $('#jobtable').bootstrapTable({
locale: '<?php echo str_replace('_','-', $_SESSION['bareos']['locale']); ?>',
Expand All @@ -339,7 +343,7 @@ $this->headTitle($title);
field: 'jobid',
sortable: true,
formatter: function(value) {
return '<a href="<?php echo $this->basePath() . '/job/details/'; ?>'+value+'" title="<?php echo $this->translate("View Job Details"); ?>">'+value+'</a>';
return formatJobId(value);
}
},
{
Expand Down

0 comments on commit 35a5a5f

Please sign in to comment.