HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/thread-self/root/proc/thread-self/cwd/pm/plugins/Manufacturing/assets/js/preview_file_js.php
<script>
  (function($) {
    "use strict";

    var discussion_id = '<?php echo html_entity_decode($file->id); ?>';
    var discussion_user_profile_image_url = '<?php echo html_entity_decode($discussion_user_profile_image_url); ?>';
    var current_user_is_admin = '<?php echo is_admin(); ?>';
    $('body').on('shown.bs.modal', '._project_file', function() {
     var content_height = ($('body').find('._project_file .modal-content').height() - 165);
     if($('iframe').length > 0){
       $('iframe').css('height',content_height);
     }
     if(!is_mobile()){
      $('.project_file_area,.project_file_discusssions_area').css('height',content_height);
    }
  });
    $('body').find('._project_file').modal({show:true, backdrop:'static', keyboard:false});

  })(jQuery);
</script>