From: Marcin Haba Date: Wed, 7 Jul 2021 17:48:12 +0000 (+0200) Subject: baculum: Fix opening job details in job table on main dashboard page - reported by... X-Git-Tag: Release-11.0.6~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8bf3ae79728332f78074904832d2990520fde5c;p=thirdparty%2Fbacula.git baculum: Fix opening job details in job table on main dashboard page - reported by Sergey Zhidkov --- diff --git a/gui/baculum/protected/Web/JavaScript/misc.js b/gui/baculum/protected/Web/JavaScript/misc.js index d8d6c9e3c..e11b6e5f4 100644 --- a/gui/baculum/protected/Web/JavaScript/misc.js +++ b/gui/baculum/protected/Web/JavaScript/misc.js @@ -775,8 +775,15 @@ var oLastJobsList = { set_events: function() { var self = this; $('#' + this.ids.last_jobs_list + ' tbody').on('click', 'tr', function (e) { - var data = self.last_jobs_table.row(this).data(); - document.location.href = '/web/job/history/' + data.jobid + '/' + var td = e.target; + if (td.nodeName != 'TD') { + td = $(td).closest('td'); + } + // first cell should not be clickable, it contains the button to open row details + if ($(td).index() > 0) { + var data = self.last_jobs_table.row(this).data(); + document.location.href = '/web/job/history/' + data.jobid + '/' + } }); } };