diff --git a/webtools/litmus/templates/en/default/admin/manage_testcases.tmpl b/webtools/litmus/templates/en/default/admin/manage_testcases.tmpl index 25380d6179fe..53121899136f 100644 --- a/webtools/litmus/templates/en/default/admin/manage_testcases.tmpl +++ b/webtools/litmus/templates/en/default/admin/manage_testcases.tmpl @@ -47,14 +47,19 @@ var showAllTests = function(err) { } }; +function splitIt(it) { + return it.split("\n"); +} + var doFilterList = function(req) { - var tests = req.responseText.split("\n"); + var tests = splitIt(req.responseText); var testbox = document.getElementById("testcase_id"); - for (var i=0; i