CTools dispatches the event "CToolsDetachBehaviors" when the modal gets closed. Careful though, the event is fired BEFORE the closing animation has finished.
Here's a sample implementation:
$(document).on("CToolsDetachBehaviors", function() {
console.log("Modal has closed");
});
这样理解: ctools 提供了一个 弹窗关闭 的钩子事件