|
@@ -207,9 +207,9 @@ public class FairSchedulerPage extends RmView {
|
|
|
" }",
|
|
|
" });",
|
|
|
" $('#cs').bind('select_node.jstree', function(e, data) {",
|
|
|
- " var q = $('.q', data.rslt.obj).first().text();",
|
|
|
- " if (q == 'root') q = '';",
|
|
|
- " else q = '^' + q.substr(q.lastIndexOf('.') + 1) + '$';",
|
|
|
+ " var queues = $('.q', data.rslt.obj);",
|
|
|
+ " var q = '^' + queues.first().text();",
|
|
|
+ " q += queues.length == 1 ? '$' : '\\\\.';",
|
|
|
" $('#apps').dataTable().fnFilter(q, 4, true);",
|
|
|
" });",
|
|
|
" $('#cs').show();",
|