Make variable declaration less verbose
authorJKingsnorth <john@johnkingsnorth.co.uk>
Fri, 18 Mar 2016 09:07:56 +0000 (09:07 +0000)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Fri, 18 Mar 2016 09:07:56 +0000 (09:07 +0000)
js/wysiwyg/crm.ckeditor.js

index c50b5b53bb6bc95dab990260b33a89bd0f08226f..c684a5140c4da84febadf0e3a894401ba1b9bdf4 100644 (file)
 
       $(item).addClass('crm-wysiwyg-enabled');
 
-      var isFullPage = false;
-      if ($(item).hasClass('crm-wysiwyg-fullpage')) {
-        isFullPage = true;
-      }
+      var isFullPage = $(item).hasClass('crm-wysiwyg-fullpage');
 
       CKEDITOR.replace($(item)[0], {
         filebrowserBrowseUrl: browseUrl + '&type=files',