resources/static/dialog/js/misc/internal_api.js modified