Confirm Cancel
', title: 'Confirm reject' }, hide: 'click unfocus', position: { at: 'bottom center', my: 'top right', target: 'event' }, show: { event: 'click', solo: true }, style: { width: '600px' } }); $(document).on('click', '.reject-confirm, .reject-cancel', function () { if ($(this).is('.reject-confirm')) { var message = encodeURIComponent($('.reject-message:visible').val().replace(/\s+/g, ' ')); window.location = '?action=reject&message=' + message; } $('.reject-action').qtip('toggle', false); $('.reject-message').val(''); return false; }); // --- Add question --- UiHelper.preventMultipleSubmit('input[id$=btnAskQuestion]'); }); })(jQuery);