fix(legacy): allow updating track types code (#2955)

Since moving to an indexed track_type model for 3.0, the constraint of the code being immutable is no longer
valid, since it's not used as index anymore. This commit removes the readonly flag from that form field.
This commit is contained in:
Thomas Göttgens 2024-02-18 19:10:30 +01:00 committed by GitHub
parent 0e6e9ff7ff
commit 270aa08ae6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 7 deletions

View File

@ -87,7 +87,7 @@
"js/airtime/showbuilder/main_builder.js": "d1ea3c3d834e47cd35c27efd75516190", "js/airtime/showbuilder/main_builder.js": "d1ea3c3d834e47cd35c27efd75516190",
"js/airtime/showbuilder/tabs.js": "a0b5284afde950a6f32c7e9e75550690", "js/airtime/showbuilder/tabs.js": "a0b5284afde950a6f32c7e9e75550690",
"js/airtime/status/status.js": "41456c6ed40f820e1e99215e81eb4bc4", "js/airtime/status/status.js": "41456c6ed40f820e1e99215e81eb4bc4",
"js/airtime/tracktype/tracktype.js": "cca00731e212727908bec54f21d4be58", "js/airtime/tracktype/tracktype.js": "1d11ec7ba6a79bc7a3cde1f167f4dc6e",
"js/airtime/user/user.js": "28811eb65c17bc9954900daeaed6c1ad", "js/airtime/user/user.js": "28811eb65c17bc9954900daeaed6c1ad",
"js/airtime/utilities/utilities.js": "e5d83eea1b38d2ff19bb968d30af9c98", "js/airtime/utilities/utilities.js": "e5d83eea1b38d2ff19bb968d30af9c98",
"js/airtime/widgets/table-example.js": "77d448b6496adf5be0a360640cd3980c", "js/airtime/widgets/table-example.js": "77d448b6496adf5be0a360640cd3980c",

View File

@ -15,12 +15,6 @@ function populateForm(entries) {
$("#visibility").val(visibility_value); $("#visibility").val(visibility_value);
$("#analyze_cue_points").prop("checked", entries.analyze_cue_points); $("#analyze_cue_points").prop("checked", entries.analyze_cue_points);
if (entries.id.length != 0) {
$("#code").attr("readonly", "readonly");
} else {
$("#code").removeAttr("readonly");
}
} }
function rowClickCallback(row_id) { function rowClickCallback(row_id) {