Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function buttonEventHandler() {
- if (condition1) {
- if(!showConfirmForCondition1) // want execution to pause while waiting for user response.
- return; // discontinue execution
- }
- if (condition2) {
- if (!showConfirmForCondition2) // want execution to pause while waiting for user response.
- return; // discontinue execution
- }
- if (condition3) {
- if (!showConfirmForCondition3) // want execution to pause while waiting for user response.
- return; // discontinue execution
- }
- ...
- }
- function BeforeDelete(controlUniqueId) {
- confirmPopup('question...?', function() { __doPostBack(controlUniqueId, ''); });
- return false;
- }
- function confirmPopup(message, okCallback) {
- $('#popup-buttons-confirm').click(okCallback);
- // set message
- // show popup
- }
Add Comment
Please, Sign In to add comment