phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r5270 - in phpcompta/trunk: html/js include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5270 - in phpcompta/trunk: html/js include
Date: Thu, 16 May 2013 19:59:44 +0200 (CEST)

Author: danydb
Date: 2013-05-16 19:59:43 +0200 (Thu, 16 May 2013)
New Revision: 5270

Modified:
   phpcompta/trunk/html/js/scripts.js
   phpcompta/trunk/include/class_html_input.php
Log:
Task #0000832: Filtrage simple de table
Le form devient un span

Modified: phpcompta/trunk/html/js/scripts.js
===================================================================
--- phpcompta/trunk/html/js/scripts.js  2013-05-15 22:22:52 UTC (rev 5269)
+++ phpcompta/trunk/html/js/scripts.js  2013-05-16 17:59:43 UTC (rev 5270)
@@ -1723,7 +1723,7 @@
  * @see HtmlInput::filter_table
  */
 function filter_table(phrase, _id, colnr,start_row) {
-       var words = phrase.value.toLowerCase();
+       var words = $(phrase).value.toLowerCase();
        var table = document.getElementById(_id);
        // if colnr contains a comma then check several columns
        var aCol = new Array();

Modified: phpcompta/trunk/include/class_html_input.php
===================================================================
--- phpcompta/trunk/include/class_html_input.php        2013-05-15 22:22:52 UTC 
(rev 5269)
+++ phpcompta/trunk/include/class_html_input.php        2013-05-16 17:59:43 UTC 
(rev 5270)
@@ -716,10 +716,10 @@
        static function filter_table($p_table_id,$p_col,$start_row)
        {
                $r= "
-                       <form style=\"display:inline\" class=\"noprint\">
+                       <span>
                        <input id=\"lk_".$p_table_id."\" class=\"input_text\" 
name=\"filter\" onkeyup=\"filter_table(this, '$p_table_id','$p_col',$start_row 
)\" type=\"text\">
                        <input type=\"button\" class=\"button\" 
onclick=\"$('lk_".$p_table_id."').value='';filter_table($('lk_".$p_table_id."'),
 '$p_table_id','$p_col',$start_row );\" value=\"X\">
-                       </form>
+                       </span>
                        ";
                return $r;
        }



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]