Tweak icon when expanding popup to fullscreen
authorColeman Watts <coleman@civicrm.org>
Fri, 10 Mar 2017 02:47:57 +0000 (21:47 -0500)
committerColeman Watts <coleman@civicrm.org>
Fri, 10 Mar 2017 02:47:57 +0000 (21:47 -0500)
js/Common.js

index 499eb2eb73cd60c26d08deea0bd42ce680f4b4cd..df3ddb5faecf929792ca069ff395f5b01b619756 100644 (file)
@@ -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();