Plugin Directory

Changeset 2695211


Ignore:
Timestamp:
03/17/2022 07:50:11 AM (3 years ago)
Author:
shakilodem
Message:

updated to version 1.0.10

Location:
logicaldoc/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • logicaldoc/trunk/admin/views/explorer/tmpl/view-rendered.php

    r2368737 r2695211  
    109109            return false;
    110110        });
     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
    111127        jQuery('#cbSearchAdvanced').button().click(function () {
    112128            if (jQuery(this).is(':checked')) {
  • logicaldoc/trunk/init.php

    r2255692 r2695211  
    6767                $.post(ajaxurl, data, function (response) {
    6868
     69            //alert('Got this from the server: ' + response);
     70
    6971                    if ($('#message').length) {
    70                         $('#message').replaceWith('<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>');
     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>');
    7173                    } 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();                   
    7677                });
    7778            });
  • logicaldoc/trunk/logicaldoc.php

    r2368737 r2695211  
    44Plugin URI: https://wiki.logicaldoc.com/wiki/LogicalDOC_WordPress_Explorer
    55Description: 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.9
     6Version: 1.0.10
    77Author: LogicalDOC Team
    88Author URI: https://www.logicaldoc.com
  • logicaldoc/trunk/readme.txt

    r2368737 r2695211  
    44Tags: logicaldoc, document management, system, software, integration, tool, dms
    55Requires at least: 4.8.6
    6 Tested up to: 5.5
    7 Stable tag: 1.0.9
     6Tested up to: 5.9.2
     7Stable tag: 1.0.10
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     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
    7076= 1.0.9 =
    7177* Adapted the graphics for the theme TwentyTwenty v1.5
  • logicaldoc/trunk/views/explorer/tmpl/form.php

    r2368737 r2695211  
    2929
    3030        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) {
    3633                document.formSearchAdvanced.task.value = 'searchAdvanced';
    3734                document.formSearchAdvanced.submit();
    3835            }
    3936            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);
    4138                return false;
    4239            }
    4340        });
    4441
    45         jQuery('*').keypress(function (e) {
    46             //funciona cuando se preciona la tecla enter
     42        jQuery('#contenidoSearchAdvanced').keypress(function (e) {
     43            // works when enter key is pressed
    4744            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) {
    5347                    document.formSearchAdvanced.task.value = 'searchAdvanced';
    5448                    document.formSearchAdvanced.submit();
    5549                }
    5650                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);
    5852                    return false;
    5953                }
     
    7367
    7468</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">
    7770    <div id="tab">
    7871        <ul>
     
    8679<?php
    8780   if (empty($_GET["contenido"])) {
    88        echo "<input type='text' name='contenido' id='contenido' value=''/>";
     81       echo "<input type='text' name='contenido' id='contenidoSearchAdvanced' value=''/>";
    8982   } else {
    9083       $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 ."'/>";
    9285   }
    9386?>
     
    136129        <input type="hidden" name="id" value="<?php echo $id; ?>"/>
    137130        <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"/>
    139132    </div><!--fin del tabs-->
    140133</form>
Note: See TracChangeset for help on using the changeset viewer.