ajaxorg/cloud9 — Issue #974: Search in All files does not return any results
Author: pstjvn
Created: 2012-02-22 09:57:44+00:00
State: open

__Version: 94e5d8258169297acb459667d61a64279070179c__

_Steps to reproduce_:
* open an existing project
* use combo ALT+SHIFT+F
* enter search term and select 'search in javascritp files' and 'search in project' and press 'Find'

_Expected result_: return results or return status with 0 results should the search does not match anything

_Actual result_: The Search result panel opens but it remains on 'Searching for 'searchterm'...

_Additional info_: The error is at 'searchinfiles.js at line 200:
```
if (state !== apf.SUCCESS || !parseInt(data.getAttribute("count"), 10))
```
Looks like the data argument is actually an XML / aml object, which does not have the getAttribute method.