concretecms / concrete5-legacy

Legacy repository for concrete5
http://www.concrete5.org
559 stars 323 forks source link

closing dialog causes JS exception #1939

Closed Remo closed 8 years ago

Remo commented 8 years ago

We've had a case where saving a content block would show a json string like {"aID":"190","arHandle":"Inhalt_Rechts","cID":"171","error":false,"bID":"1233"} on a concrete5 alert modal.

The problem is caused because the method hide isn't defined when this is called https://github.com/concrete5/concrete5-legacy/commit/2c6cb06af57721316963af8d3cdcf77623ab9ea0#diff-435213ee61c719a5fc9b1264238ec74dR206

In our case it worked after we've added if (typeof $ccmDialogHelp.data('popover') != 'undefined')