PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.7.0
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.7.0
4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.5.2 All 199 releases
betterdocs / views / templates / feedback-parts / editor.php

editor.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.7.0, at views/templates/feedback-parts/editor.php

31 lines 962 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
2 <script>
3 jQuery(document).ready(function($) {
4 var $ = jQuery;
5 let formLink = $(".feedback-form-link");
6 let formModal = $("#betterdocs-form-modal");
7 let formModalContent = $("#betterdocs-form-modal .modal-content");
8 //select all the a tag with name equal to modal
9 formLink.click(function(e) {
10 e.preventDefault();
11 formModal.fadeIn(500);
12 });
13
14 //if outside of modal content is clicked
15 $(document).mouseup(function(e) {
16 if (
17 !formModalContent.is(e.target) &&
18 formModalContent.has(e.target).length === 0
19 ) {
20 formModal.fadeOut();
21 }
22 });
23
24 //if close button is clicked
25 $(".betterdocs-modalwindow .close").click(function(e) {
26 e.preventDefault();
27 formModal.fadeOut(500);
28 });
29 });
30 </script>
31