PluginProbe
Taskbuilder – Project Management & Task Management Tool With Kanban Board / 2.0.6
Taskbuilder – Project Management & Task Management Tool With Kanban Board v2.0.6
6.0.5 6.0.2 6.0.3 6.0.4 6.0.1 6.0.0 5.0.8 5.0.9 4.0.9 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 All 57 releases
taskbuilder / asset / js / modal.js

modal.js in Taskbuilder – Project Management & Task Management Tool With Kanban Board 2.0.6, at asset/js/modal.js

48 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(document).ready(function(){
2 jQuery('#wppm_popup_background,.wppm_popup_close').click(function(){
3 wppm_modal_close();
4 });
5 jQuery(document).keyup(function(e){
6 if (e.keyCode == 27) {
7 wppm_modal_close();
8 }
9 });
10 });
11
12 function wppm_modal_open(title){
13 jQuery('#wppm_popup_title h3').text(title);
14 jQuery('#wppm_popup_body').html(wppm_admin.loading_html);
15 jQuery('.wppm_popup_action').hide();
16 jQuery('#wppm_popup_container,#wppm_popup_background').show();
17 }
18
19 function wppm_modal_close(){
20 jQuery('#wppm_popup_container,#wppm_popup_background').hide();
21 }
22
23 function wppm_modal_close_thread(tinymce_toolbar){
24
25 jQuery('#wppm_popup_container,#wppm_popup_background').hide();
26 var is_tinymce = (typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden();
27 if(is_tinymce){
28 tinymce.init({
29 selector:'#wppm_reply_box',
30 body_id: 'wppm_reply_box',
31 menubar: false,
32 statusbar: false,
33 autoresize_min_height: 150,
34 wp_autoresize_on: true,
35 plugins: [
36 'wpautoresize lists link image directionality'
37 ],
38 toolbar: tinymce_toolbar.join() +' | wppm_templates',
39 branding: false,
40 autoresize_bottom_margin: 20,
41 browser_spellcheck : true,
42 relative_urls : false,
43 remove_script_host : false,
44 convert_urls : true
45 });
46 }
47 }
48