Skip to content

Commit

Permalink
fix(legacy): allow updating track types code (#2955)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
caveman99 committed Feb 18, 2024
1 parent 0e6e9ff commit 270aa08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion legacy/application/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"js/airtime/showbuilder/main_builder.js": "d1ea3c3d834e47cd35c27efd75516190",
"js/airtime/showbuilder/tabs.js": "a0b5284afde950a6f32c7e9e75550690",
"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/utilities/utilities.js": "e5d83eea1b38d2ff19bb968d30af9c98",
"js/airtime/widgets/table-example.js": "77d448b6496adf5be0a360640cd3980c",
Expand Down
6 changes: 0 additions & 6 deletions legacy/public/js/airtime/tracktype/tracktype.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ function populateForm(entries) {
$("#visibility").val(visibility_value);

$("#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) {
Expand Down

0 comments on commit 270aa08

Please sign in to comment.