don't search for files by class name

This code was searching for files in the files UI by a
class name that doesn't exist. Some of the names caused
chrome to freeze when trying this search.

Test Plan:
 * Clicking on a file in the left area of the files area
     should not cause chrome to freeze.

closes #CNVS-3276

Change-Id: I9ade59f4290008091eb5e4531d4dfd5eb752531e
Reviewed-on: https://gerrit.instructure.com/17474
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Adam Phillipps <adam@instructure.com>
This commit is contained in:
Bracken Mosbacker 2013-02-05 12:46:17 -07:00
parent f38f59009c
commit e48636b8bf
1 changed files with 0 additions and 5 deletions

View File

@ -429,11 +429,6 @@ define([
}
},
nodeFromPath: function(path) {
try {
if($files_structure.find("#files_structure_list > li." + path).length > 0) {
return $files_structure.find("#files_structure_list > li." + path);
}
} catch(e) {}
var names = path.replace(/\/\//g, "\\").split('/');
var $node = $files_structure;
var keepGoing = true;