Fixed compatibility when displayed as tinymce filebrowser dielog.

Removed is_ajax() checking in elfinder views.

Replaced isRejected()/isResolved() calls in elfinder.full.js with
comparing to state() call.