From 9867826d264a4b7b6cb7a5c64a2dda5000d75380 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 3 Sep 2014 09:03:35 +0100 Subject: [PATCH] CRM-13863 - Add icons to confirmation dialog buttons --- js/Common.js | 1 + templates/CRM/common/enableDisableApi.tpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/Common.js b/js/Common.js index c28c851973..f3a170df57 100644 --- a/js/Common.js +++ b/js/Common.js @@ -796,6 +796,7 @@ CRM.strings = CRM.strings || {}; $.each(settings.options, function(key, label) { settings.buttons.push({ text: label, + icons: {primary: key === 'no' ? 'ui-icon-close' : 'ui-icon-check'}, click: function() { var event = $.Event('crmConfirm:' + key); $(this).trigger(event); diff --git a/templates/CRM/common/enableDisableApi.tpl b/templates/CRM/common/enableDisableApi.tpl index 87a87ae62d..2396685fee 100644 --- a/templates/CRM/common/enableDisableApi.tpl +++ b/templates/CRM/common/enableDisableApi.tpl @@ -53,8 +53,8 @@ conf.html(response.content); if (!response.illegal) { conf.dialog('option', 'buttons', [ - {text: {/literal}'{ts escape="js"}Yes{/ts}'{literal}, click: save}, - {text: {/literal}'{ts escape="js"}No{/ts}'{literal}, click: function() {$(this).dialog('close');}} + {text: {/literal}'{ts escape="js"}Yes{/ts}'{literal}, click: save, icons: {primary: 'ui-icon-check'}}, + {text: {/literal}'{ts escape="js"}No{/ts}'{literal}, click: function() {$(this).dialog('close');}, icons: {primary: 'ui-icon-close'}} ]); } }); -- 2.25.1