parent
7d32a51195
commit
d6798e766d
2 changed files with 3 additions and 3 deletions
|
|
@ -1723,7 +1723,7 @@ function view_action(ag_id,dossier,modify)
|
|||
* @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();
|
||||
|
|
|
|||
|
|
@ -716,10 +716,10 @@ class HtmlInput
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue