Fix actions on modx.view.js

Makes media browser functional again