Changeset 2695211
- Timestamp:
- 03/17/2022 07:50:11 AM (3 years ago)
- Location:
- logicaldoc/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
logicaldoc/trunk/admin/views/explorer/tmpl/view-rendered.php
r2368737 r2695211 109 109 return false; 110 110 }); 111 112 jQuery('#contenido').keypress(function (e) { 113 // works when enter key is pressed 114 if (e.keyCode == 13) { 115 var contenido = jQuery('#contenido').val(); 116 if (contenido) { 117 document.formSearch.task.value = 'searchAdvanced'; 118 document.formSearch.submit(); 119 } 120 else { 121 jQuery('#contenido').validationEngine('showPrompt', "<?php _e('This field is required', 'codended'); ?>", 'error', true); 122 return false; 123 } 124 } 125 }); 126 111 127 jQuery('#cbSearchAdvanced').button().click(function () { 112 128 if (jQuery(this).is(':checked')) { -
logicaldoc/trunk/init.php
r2255692 r2695211 67 67 $.post(ajaxurl, data, function (response) { 68 68 69 //alert('Got this from the server: ' + response); 70 69 71 if ($('#message').length) { 70 $('#message').replaceWith('<div id="message" class=" updated noticeis-dismissible"><p><strong>' + response + '</strong>.</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>');72 $('#message').replaceWith('<div id="message" class="notice notice-info is-dismissible"><p><strong>' + response + '</strong>.</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>'); 71 73 } else { 72 $('<div id="message" class="updated notice is-dismissible"><p><strong>' + response + '</strong>.</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>').insertAfter('h1'); 73 } 74 removeOverlay(); 75 //alert('Got this from the server: ' + response); 74 $('<div id="message" class="notice notice-info is-dismissible"><p><strong>' + response + '</strong>.</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>').insertAfter('h1'); 75 } 76 removeOverlay(); 76 77 }); 77 78 }); -
logicaldoc/trunk/logicaldoc.php
r2368737 r2695211 4 4 Plugin URI: https://wiki.logicaldoc.com/wiki/LogicalDOC_WordPress_Explorer 5 5 Description: LogicalDOC is a document management software that is designed to handle and share documents within an organization. This plugin allows you to expose in a controlled way a portion of the document repository in WordPress, allowing folder browsing, document downloading and full-text search. 6 Version: 1.0. 96 Version: 1.0.10 7 7 Author: LogicalDOC Team 8 8 Author URI: https://www.logicaldoc.com -
logicaldoc/trunk/readme.txt
r2368737 r2695211 4 4 Tags: logicaldoc, document management, system, software, integration, tool, dms 5 5 Requires at least: 4.8.6 6 Tested up to: 5. 57 Stable tag: 1.0. 96 Tested up to: 5.9.2 7 Stable tag: 1.0.10 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 68 68 == Changelog == 69 69 70 = 1.0.10 = 71 * Fixed HTML duplicate ID errors 72 * Tested up to WordPress version 5.9.2 73 * Tested with LogicalDOC version 8.7.3 74 * Compatible with PHP 7.4.15 75 70 76 = 1.0.9 = 71 77 * Adapted the graphics for the theme TwentyTwenty v1.5 -
logicaldoc/trunk/views/explorer/tmpl/form.php
r2368737 r2695211 29 29 30 30 jQuery("#searchAdvanced").button().click(function () { 31 var contenido = jQuery('#contenido').val(); 32 var nombre = jQuery('#nombre').val(); 33 var palabraClave = jQuery('#palabraClave').val(); 34 //if (contenido != '' || nombre != '' || palabraClave != '') { 35 if (contenido) { 31 var contenidoSA = jQuery('#contenidoSearchAdvanced').val(); 32 if (contenidoSA) { 36 33 document.formSearchAdvanced.task.value = 'searchAdvanced'; 37 34 document.formSearchAdvanced.submit(); 38 35 } 39 36 else { 40 jQuery('#contenido ').validationEngine('showPrompt', "<?php _e('This field is required', 'codended');?>", 'error', true);37 jQuery('#contenidoSearchAdvanced').validationEngine('showPrompt', "<?php _e('This field is required', 'codended');?>", 'error', true); 41 38 return false; 42 39 } 43 40 }); 44 41 45 jQuery(' *').keypress(function (e) {46 // funciona cuando se preciona la tecla enter42 jQuery('#contenidoSearchAdvanced').keypress(function (e) { 43 // works when enter key is pressed 47 44 if (e.keyCode == 13) { 48 var contenido = jQuery('#contenido').val(); 49 var nombre = jQuery('#nombre').val(); 50 var palabraClave = jQuery('#palabraClave').val(); 51 //if (contenido != '' || nombre != '' || palabraClave != '') { 52 if (contenido !== "") { 45 var contenidoSA = jQuery('#contenidoSearchAdvanced').val(); 46 if (contenidoSA) { 53 47 document.formSearchAdvanced.task.value = 'searchAdvanced'; 54 48 document.formSearchAdvanced.submit(); 55 49 } 56 50 else { 57 jQuery('#contenido ').validationEngine('showPrompt', "<?php _e('This field is required', 'codended'); ?>", 'error', true);51 jQuery('#contenidoSearchAdvanced').validationEngine('showPrompt', "<?php _e('This field is required', 'codended'); ?>", 'error', true); 58 52 return false; 59 53 } … … 73 67 74 68 </script> 75 <form action="" method="GET" name="formSearchAdvanced" 76 id="formSearchAdvanced" enctype="multipart/form-data"> 69 <form action="" method="GET" name="formSearchAdvanced" id="formSearchAdvanced" enctype="application/x-www-form-urlencoded"> 77 70 <div id="tab"> 78 71 <ul> … … 86 79 <?php 87 80 if (empty($_GET["contenido"])) { 88 echo "<input type='text' name='contenido' id='contenido ' value=''/>";81 echo "<input type='text' name='contenido' id='contenidoSearchAdvanced' value=''/>"; 89 82 } else { 90 83 $contentFiltered = filter_var($_GET["contenido"], FILTER_SANITIZE_STRING); 91 echo "<input type='text' name='contenido' id='contenido ' value='" .$contentFiltered ."'/>";84 echo "<input type='text' name='contenido' id='contenidoSearchAdvanced' value='" .$contentFiltered ."'/>"; 92 85 } 93 86 ?> … … 136 129 <input type="hidden" name="id" value="<?php echo $id; ?>"/> 137 130 <input type="hidden" name="task" value=""/> 138 <input type="hidden" name="documento" id="documento " value="1"/>131 <input type="hidden" name="documento" id="documentoSearchAdvanced" value="1"/> 139 132 </div><!--fin del tabs--> 140 133 </form>
Note: See TracChangeset
for help on using the changeset viewer.