From: Marcin Haba Date: Sun, 17 Nov 2019 21:29:46 +0000 (+0100) Subject: baculum: Add table filters X-Git-Tag: Release-9.6.0~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d577680f7f3469bc110b1262024e9a93b7cbea13;p=thirdparty%2Fbacula.git baculum: Add table filters --- diff --git a/gui/baculum/protected/Web/JavaScript/misc.js b/gui/baculum/protected/Web/JavaScript/misc.js index 7095262b5..d73b25170 100644 --- a/gui/baculum/protected/Web/JavaScript/misc.js +++ b/gui/baculum/protected/Web/JavaScript/misc.js @@ -1044,6 +1044,12 @@ function handle_touch_move(e, callbacks) { touch_start_y = null; } +function sort_natural(a, b) { + a = a.toString(); + b = b.toString(); + return a.localeCompare(b, undefined, {numeric: true}); +} + $(function() { W3SideBar.init(); set_sbbr_compatibility(); diff --git a/gui/baculum/protected/Web/Pages/ClientList.page b/gui/baculum/protected/Web/Pages/ClientList.page index ecb1c9c6c..eb3d238a1 100644 --- a/gui/baculum/protected/Web/Pages/ClientList.page +++ b/gui/baculum/protected/Web/Pages/ClientList.page @@ -23,8 +23,19 @@ <%[ Actions ]%> - - + + + + + ClientId + <%[ Name ]%> + <%[ Uname ]%> + <%[ AutoPrune ]%> + <%[ Job retention ]%> + <%[ File retention ]%> + <%[ Actions ]%> + +