Browse Source

Fix Search Reset button visibility.

fusionate 1 year ago
parent
commit
ead751b3b9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dialplan_tools.php

+ 2 - 2
dialplan_tools.php

@@ -1,6 +1,6 @@
 <?php
 <?php
 /*
 /*
-	Copyright (c) 2019-2023 Mark J Crane <[email protected]>
+	Copyright (c) 2019-2024 Mark J Crane <[email protected]>
 
 
 	Redistribution and use in source and binary forms, with or without
 	Redistribution and use in source and binary forms, with or without
 	modification, are permitted provided that the following conditions
 	modification, are permitted provided that the following conditions
@@ -209,7 +209,7 @@
 	}
 	}
 	echo 		"<input type='text' class='txt list-search' name='search' id='search' value=\"".escape($search ?? null)."\" placeholder=\"".$text['label-search']."\" onkeydown='list_search_reset();'>";
 	echo 		"<input type='text' class='txt list-search' name='search' id='search' value=\"".escape($search ?? null)."\" placeholder=\"".$text['label-search']."\" onkeydown='list_search_reset();'>";
 	echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>(!empty($search) ? 'display: none;' : null)]);
 	echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>(!empty($search) ? 'display: none;' : null)]);
-	echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>'dialplan_tools.php','style'=>(!empty($search) ? 'display: none;' : null)]);
+	echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>'dialplan_tools.php','style'=>(empty($search) ? 'display: none;' : null)]);
 	if ($paging_controls_mini != '') {
 	if ($paging_controls_mini != '') {
 		echo 	"<span style='margin-left: 15px;'>".$paging_controls_mini."</span>\n";
 		echo 	"<span style='margin-left: 15px;'>".$paging_controls_mini."</span>\n";
 	}
 	}