From 961b6a3e9984b3e6d9c65d66397a78cb9340ed3d Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Sun, 12 Jan 2025 03:30:13 +0100 Subject: [PATCH] Replace checked="checked" with checked Signed-off-by: Liviu-Mihail Concioiu --- resources/js/src/makegrid.ts | 2 +- resources/js/src/modules/functions.ts | 2 +- resources/js/src/modules/indexes.ts | 4 +-- resources/js/src/table/change.ts | 2 +- .../templates/create_tracking_version.twig | 26 +++++++++---------- .../database/multi_table_query/form.twig | 4 +-- .../encoding/kanji_encoding_form.twig | 2 +- resources/templates/gis_data_editor_form.twig | 2 +- .../templates/preferences/manage/main.twig | 4 +-- .../server/status/monitor/index.twig | 8 +++--- resources/templates/view_create.twig | 2 +- src/ConfigStorage/UserGroups.php | 2 +- src/Export/Export.php | 2 +- src/InsertEdit.php | 2 +- src/Plugins.php | 2 +- tests/unit/ConfigStorage/UserGroupsTest.php | 2 +- .../Table/ImportControllerTest.php | 2 +- tests/unit/InsertEditTest.php | 2 +- tests/unit/Tracking/TrackingTest.php | 2 +- 19 files changed, 37 insertions(+), 37 deletions(-) diff --git a/resources/js/src/makegrid.ts b/resources/js/src/makegrid.ts index 283280693f3f..ac1a67d5ad9d 100644 --- a/resources/js/src/makegrid.ts +++ b/resources/js/src/makegrid.ts @@ -1867,7 +1867,7 @@ const makeGrid = function (t, enableResize = undefined, enableReorder = undefine var currHeader = $firstRowCols[i]; var listElmt = document.createElement('div'); $(listElmt).text($(currHeader).text()) - .prepend(''); + .prepend(''); $listDiv.append(listElmt); // add event on click diff --git a/resources/js/src/modules/functions.ts b/resources/js/src/modules/functions.ts index fa116c6607d1..a5f29d2451ea 100644 --- a/resources/js/src/modules/functions.ts +++ b/resources/js/src/modules/functions.ts @@ -1049,7 +1049,7 @@ export function loadForeignKeyCheckbox () { $.get('index.php?route=/sql/get-default-fk-check-value', params, function (data) { var html = '' + '' + + (data.default_fk_check_value ? ' checked' : '') + '>' + ''; $('.load-default-fk-check-value').replaceWith(html); }); diff --git a/resources/js/src/modules/indexes.ts b/resources/js/src/modules/indexes.ts index ae3694d36456..5e5f50cae3c4 100644 --- a/resources/js/src/modules/indexes.ts +++ b/resources/js/src/modules/indexes.ts @@ -258,7 +258,7 @@ function getCompositeIndexList (sourceArray, colIndex) { $compositeIndexList.append( '
  • ' + '' + '' + @@ -444,7 +444,7 @@ var removeIndexOnChangeEvent = function () { */ function indexTypeSelectionDialog (sourceArray, indexChoice, colIndex): void { var $singleColumnRadio = $('
    ' + - '' + + '' + '
    '); var $compositeIndexRadio = $('
    ' + diff --git a/resources/js/src/table/change.ts b/resources/js/src/table/change.ts index 0812f38622fd..83cb9a754b6d 100644 --- a/resources/js/src/table/change.ts +++ b/resources/js/src/table/change.ts @@ -868,7 +868,7 @@ function addNewContinueInsertionFields (event) { // Insert/Clone the ignore checkboxes if (currRows === 1) { - $('') + $('') .insertBefore($('table.insertRowTable').last()) .after(''); } else { diff --git a/resources/templates/create_tracking_version.twig b/resources/templates/create_tracking_version.twig index d759d329943f..85505f346872 100644 --- a/resources/templates/create_tracking_version.twig +++ b/resources/templates/create_tracking_version.twig @@ -22,16 +22,16 @@ {% if type == 'both' or type == 'table' %} + {{- 'ALTER TABLE' in default_statements ? ' checked' }}> ALTER TABLE
    + {{- 'RENAME TABLE' in default_statements ? ' checked' }}> RENAME TABLE
    + {{- 'CREATE TABLE' in default_statements ? ' checked' }}> CREATE TABLE
    + {{- 'DROP TABLE' in default_statements ? ' checked' }}> DROP TABLE
    {% endif %} {% if type == 'both' %} @@ -39,36 +39,36 @@ {% endif %} {% if type == 'both' or type == 'view' %} + {{- 'ALTER VIEW' in default_statements ? ' checked' }}> ALTER VIEW
    + {{- 'CREATE VIEW' in default_statements ? ' checked' }}> CREATE VIEW
    + {{- 'DROP VIEW' in default_statements ? ' checked' }}> DROP VIEW
    {% endif %}
    + {{- 'CREATE INDEX' in default_statements ? ' checked' }}> CREATE INDEX
    + {{- 'DROP INDEX' in default_statements ? ' checked' }}> DROP INDEX

    {{ t('Track these data manipulation statements:') }}

    + {{- 'INSERT' in default_statements ? ' checked' }}> INSERT
    + {{- 'UPDATE' in default_statements ? ' checked' }}> UPDATE
    + {{- 'DELETE' in default_statements ? ' checked' }}> DELETE
    + {{- 'TRUNCATE' in default_statements ? ' checked' }}> TRUNCATE
    diff --git a/resources/templates/database/multi_table_query/form.twig b/resources/templates/database/multi_table_query/form.twig index 236ba327d3a7..4b6f809216e4 100644 --- a/resources/templates/database/multi_table_query/form.twig +++ b/resources/templates/database/multi_table_query/form.twig @@ -34,7 +34,7 @@
    - + {{ t('Show') }}
    @@ -65,7 +65,7 @@ name="logical_op[{{ id }}]" value="AND" class="logical_op" - checked="checked"> + checked> AND diff --git a/resources/templates/encoding/kanji_encoding_form.twig b/resources/templates/encoding/kanji_encoding_form.twig index 51495362724d..6f3182b2e0ac 100644 --- a/resources/templates/encoding/kanji_encoding_form.twig +++ b/resources/templates/encoding/kanji_encoding_form.twig @@ -1,6 +1,6 @@
    • - + diff --git a/resources/templates/gis_data_editor_form.twig b/resources/templates/gis_data_editor_form.twig index ac0994c5c429..030326322ac8 100644 --- a/resources/templates/gis_data_editor_form.twig +++ b/resources/templates/gis_data_editor_form.twig @@ -57,7 +57,7 @@ diff --git a/resources/templates/preferences/manage/main.twig b/resources/templates/preferences/manage/main.twig index c384e3fce322..488691bb78bb 100644 --- a/resources/templates/preferences/manage/main.twig +++ b/resources/templates/preferences/manage/main.twig @@ -15,7 +15,7 @@ enctype="multipart/form-data"> {{ get_hidden_inputs() }} - +
      @@ -75,7 +75,7 @@ {{ get_hidden_inputs() }}
      + value="text_file" checked>
      diff --git a/resources/templates/server/status/monitor/index.twig b/resources/templates/server/status/monitor/index.twig index db592f80d9d9..4b801b73c446 100644 --- a/resources/templates/server/status/monitor/index.twig +++ b/resources/templates/server/status/monitor/index.twig @@ -104,7 +104,7 @@
      - + @@ -137,7 +137,7 @@
      - + @@ -194,13 +194,13 @@

      - +
      - + diff --git a/resources/templates/view_create.twig b/resources/templates/view_create.twig index 7dd4e12e2b13..8e79905c6cdf 100644 --- a/resources/templates/view_create.twig +++ b/resources/templates/view_create.twig @@ -30,7 +30,7 @@ diff --git a/src/ConfigStorage/UserGroups.php b/src/ConfigStorage/UserGroups.php index 66a6d742fe57..c102f3ec0933 100644 --- a/src/ConfigStorage/UserGroups.php +++ b/src/ConfigStorage/UserGroups.php @@ -266,7 +266,7 @@ public static function getTabList(string $title, UserGroupLevel $level, array $s $tabDetails = []; foreach ($tabs as $tab => $tabName) { $tabDetail = []; - $tabDetail['in_array'] = in_array($tab, $selected) ? ' checked="checked"' : ''; + $tabDetail['in_array'] = in_array($tab, $selected) ? ' checked' : ''; $tabDetail['tab'] = $tab; $tabDetail['tab_name'] = $tabName; $tabDetails[] = $tabDetail; diff --git a/src/Export/Export.php b/src/Export/Export.php index 62f2435d67ab..d763e4e0bbd0 100644 --- a/src/Export/Export.php +++ b/src/Export/Export.php @@ -1028,7 +1028,7 @@ public function getMetadataTypes(): array public function getCheckedClause(string $key, array $array): string { if (in_array($key, $array)) { - return ' checked="checked"'; + return ' checked'; } return ''; diff --git a/src/InsertEdit.php b/src/InsertEdit.php index 2cac2475b954..595e4ed6f7eb 100644 --- a/src/InsertEdit.php +++ b/src/InsertEdit.php @@ -1512,7 +1512,7 @@ public function getCommentsMap(string $db, string $table): array public function getHtmlForIgnoreOption(int $rowId, bool $checked = true): string { return '' . '