1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Update UI when coming from history

This commit is contained in:
Jakub Vrana
2018-02-09 17:35:17 +01:00
parent eeb7ce1939
commit 7ac96dd0b2
2 changed files with 16 additions and 2 deletions

View File

@@ -409,6 +409,19 @@ function partitionNameChange() {
this.oninput = function () {};
}
/** Show or hide comment fields
* @param [boolean] whether to focus Comment if checked
* @this HTMLInputElement
*/
function editingCommentsClick(focus) {
var comment = this.form['Comment'];
columnShow(this.checked, 6);
alterClass(comment, 'hidden', !this.checked);
if (focus && this.checked) {
comment.focus();
}
}
/** Uncheck 'all' checkbox