fix issue reported by @simod I now get a Uncaught TypeError: Cannot read property 'Save' of undefined here both at layer/upload and document/upload pages.