PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.9
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.9
4.9.2 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 All 200 releases
betterdocs / views / templates / feedback-parts / editor.php

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

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