# taskbuilder/6.0.6/asset/js/modal.js

Taskbuilder – Project Management &amp; Task Management Tool With Kanban Board, version 6.0.6. 88 lines.

- Page: https://pluginprobe.com/plugins/taskbuilder/6.0.6/code/asset/js/modal.js
- Raw: https://pluginprobe.com/plugins/taskbuilder/6.0.6/raw/asset/js/modal.js
- Modified: 2026-08-26T12:08:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/taskbuilder/6.0.6/code/asset/js/modal.js#L10-L20`.

```javascript
  jQuery(document).ready(function(){
    jQuery('#wppm_popup_background,.wppm_popup_close').click(function(){
      wppm_modal_close();
    });
    jQuery('#wppm_task_popup_background,.wppm_task_popup_close').click(function(){
      wppm_modal_close();
    });
    jQuery(document).keyup(function(e){
      if (e.keyCode == 27) { 
        wppm_modal_close();
      }
    });
  });

  function wppm_modal_open(title){
    jQuery('#wppm_popup_title h3').text(title);
    jQuery('#wppm_popup_body').html(wppm_admin.loading_html);
    jQuery('.wppm_popup_action').hide();
    jQuery('#wppm_popup_container,#wppm_popup_background').show();
  }
  
  function wppm_modal_close(){
    jQuery('#wppm_popup_container,#wppm_popup_background').hide();
  }
  
  function wppm_modal_close_thread(tinymce_toolbar){
    
    jQuery('#wppm_popup_container,#wppm_popup_background').hide();
    var is_tinymce = (typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden();
    if(is_tinymce){
      tinymce.init({
        selector:'#wppm_reply_box',
        body_id: 'wppm_reply_box',
        menubar: false,
        statusbar: false,
        autoresize_min_height: 150,
        wp_autoresize_on: true,
        plugins: [
            'wpautoresize lists link image directionality'
        ],
        toolbar:  tinymce_toolbar.join() +' | wppm_templates',
        branding: false,
        autoresize_bottom_margin: 20,
        browser_spellcheck : true,
        relative_urls : false,
        remove_script_host : false,
        convert_urls : true
      });
    }
  }

  function wppm_task_modal_open(title){
    jQuery('#wppm_task_popup_title h3').text(title);
    jQuery('#wppm_task_popup_body').html(wppm_admin.loading_html);
    jQuery('.wppm_task_popup_action').hide();
    jQuery('#wppm_task_popup_container,#wppm_task_popup_background').show();
  }
  
  function wppm_task_modal_close(){
    jQuery('#wppm_task_popup_container,#wppm_task_popup_background').hide();
  }
  
  function wppm_task_modal_close_thread(tinymce_toolbar){
    
    jQuery('#wppm_task_popup_container,#wppm_task_popup_background').hide();
    var is_tinymce = (typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden();
    if(is_tinymce){
      tinymce.init({
        selector:'#wppm_reply_box',
        body_id: 'wppm_reply_box',
        menubar: false,
        statusbar: false,
        autoresize_min_height: 150,
        wp_autoresize_on: true,
        plugins: [
            'wpautoresize lists link image directionality'
        ],
        toolbar:  tinymce_toolbar.join() +' | wppm_templates',
        branding: false,
        autoresize_bottom_margin: 20,
        browser_spellcheck : true,
        relative_urls : false,
        remove_script_host : false,
        convert_urls : true
      });
    }
  }
  
```
