From d9a1041092d6fbe3d4ca23b783142f85d2ca2ee7 Mon Sep 17 00:00:00 2001 From: Mohammad Younes Date: Mon, 6 Jan 2014 17:24:07 +0200 Subject: [PATCH] Add ok/cancel combination to the selectors list --- server/documents/modules/modal.html.eco | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/documents/modules/modal.html.eco b/server/documents/modules/modal.html.eco index 9f122d1ab..3cd22df41 100755 --- a/server/documents/modules/modal.html.eco +++ b/server/documents/modules/modal.html.eco @@ -168,7 +168,7 @@ type : 'UI Module'

Approve / Deny Callbacks

-

Modals will automatically tie approve deny callbacks to any positive/approve or negative/deny buttons. If a callback returns false it will prevent the modal from closing

+

Modals will automatically tie approve deny callbacks to any positive/approve or negative/deny or ok/cancel buttons. If a callback returns false it will prevent the modal from closing

$('.basic.modal') .modal('setting', { @@ -444,7 +444,7 @@ type : 'UI Module' onDeny Modal - Is called after a negative or deny button is pressed. + Is called after a negative or deny or cancel button is pressed. @@ -472,8 +472,8 @@ type : 'UI Module'
selector : { close : '.close, .actions .button', - approve : '.actions .positive, .actions .approve', - deny : '.actions .negative, .actions .deny' + approve : '.actions .positive, .actions .approve, .actions .ok', + deny : '.actions .negative, .actions .deny, .actions .cancel' },
@@ -539,4 +539,4 @@ type : 'UI Module'
-
\ No newline at end of file +