mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Admin/Screenshots
* whelp, didn't see the onKeydown handler for the input field
* fix the fix in bf06c418d4
* allow "ArrowUp", "ArrowDown" and "-" as inputs
* also fix search by pressing <Return>
This commit is contained in:
@@ -31,7 +31,7 @@ endforeach;
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td>#<input type="text" size="10" id="pagetypeid"></td>
|
||||
<td>#<input type="number" size="6" id="pagetypeid"></td>
|
||||
<td>» <a href="#" onClick="ss_Manage(null, $('#pagetype').val(), parseInt($('#pagetypeid').val()) || 0)">Search by Page</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -108,12 +108,12 @@ endforeach;
|
||||
$WH.ge('pagetypeid').onkeydown = function(e)
|
||||
{
|
||||
e = $WH.$E(e);
|
||||
var validKeys = [8, 9, 13, 35, 36, 37, 39, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57];
|
||||
var validKeys = [8, 9, 13, 35, 36, 37, 38, 39, 40, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 173];
|
||||
if (!e.ctrlKey && $WH.in_array(validKeys, e.keyCode) == -1)
|
||||
return false;
|
||||
|
||||
if (e.keyCode == 13 && this.value != '')
|
||||
ss_Manage();
|
||||
ss_Manage(null, $('#pagetype').val(), parseInt($('#pagetypeid').val()) || 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user