mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Go nuclear on Safari's autocomplete.
This commit is contained in:
6
public/js/autocomplete.js
Normal file
6
public/js/autocomplete.js
Normal file
@@ -0,0 +1,6 @@
|
||||
// Hacky fix for browsers ignoring autocomplete="off"
|
||||
$(document).ready(function() {
|
||||
$('.form-autocomplete-stop').on('click', function () {
|
||||
$(this).removeAttr('readonly').blur().focus();
|
||||
});
|
||||
});
|
||||
@@ -299,3 +299,8 @@ tr:hover + tr.server-description {
|
||||
bottom: 5px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
input.form-autocomplete-stop[readonly] {
|
||||
background: inherit;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user