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

Remember visible columns in Create Table form (bug #493)

This commit is contained in:
Jakub Vrana
2019-01-22 13:13:27 +01:00
parent 7defb7787d
commit 21f0481a1d
4 changed files with 44 additions and 34 deletions

View File

@@ -460,14 +460,6 @@ function columnShow(checked, column) {
}
}
/** Hide column with default values in narrow window
*/
function editingHideDefaults() {
if (innerWidth < document.documentElement.scrollWidth) {
qs('#form')['defaults'].checked = false;
}
}
/** Display partition options
* @this HTMLSelectElement
*/
@@ -489,14 +481,14 @@ function partitionNameChange() {
}
/** Show or hide comment fields
* @param HTMLInputElement
* @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) {
function editingCommentsClick(el, focus) {
var comment = el.form['Comment'];
columnShow(el.checked, 6);
alterClass(comment, 'hidden', !el.checked);
if (focus && el.checked) {
comment.focus();
}
}