This topic contains 3 replies, has 2 voices, and was last updated by Hryhorii Hrebiniuk 5 years, 6 months ago.
- Topic
jQuery UI dialogs has some callbacks like ‘close’ and ‘beforeClose’:
https://api.jqueryui.com/dialog/#event-close
https://api.jqueryui.com/dialog/#event-beforeCloseMy PHP render a dialog, like that below:
1234567891011121314151617181920212223{{ UI.clientButton({'dataUrl': path('ibv_household_member_create', oro_action_params(entity, 'assign')),'aCss': 'no-hash','iCss': 'fa-user-o','dataId': entity.id,'label': 'ibv.household.householdmember.action.add'|trans,'widget': {'type': 'dialog','multiple': false,'refresh-widget-alias': 'member-list-widget','options': {'alias': 'member-dialog','dialogOptions': {'title': 'ibv.household.householdmember.action.add'|trans,'allowMaximize': true,'allowMinimize': true,'dblclick': 'maximize','maximizedHeightDecreaseBy': 'minimize-bar','width': 1000}}}}) }}How do I define a javascript callback, that shows a ‘alert()’ (for example), when dialog is closed?
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.