From e915be1d926afb46cb4d8d20e0e2710213aa52de Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 9 Mar 2017 21:47:57 -0500 Subject: [PATCH] Tweak icon when expanding popup to fullscreen --- js/Common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/Common.js b/js/Common.js index 499eb2eb73..df3ddb5fae 100644 --- a/js/Common.js +++ b/js/Common.js @@ -1050,6 +1050,7 @@ if (!CRM.vars) CRM.vars = {}; if ($el.data('origSize')) { $el.dialog('option', $el.data('origSize')); $el.data('origSize', null); + $(this).button('option', 'icons', {primary: 'fa-expand'}); } else { var menuHeight = $('#civicrm-menu').outerHeight(); $el.data('origSize', { @@ -1058,6 +1059,7 @@ if (!CRM.vars) CRM.vars = {}; height: $el.dialog('option', 'height') }); $el.dialog('option', {width: '100%', height: ($(window).height() - menuHeight), position: {my: "top", at: "top+"+menuHeight, of: window}}); + $(this).button('option', 'icons', {primary: 'fa-compress'}); } $el.trigger('dialogresize'); e.preventDefault(); -- 2.25.1