Replaced split ID's with DOM Dataset in channel settings page.

This commit is contained in:
rainbow napkin 2025-09-08 07:31:43 -04:00
parent e539b9d75d
commit 92659929b9
4 changed files with 14 additions and 15 deletions

View file

@ -22,10 +22,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
<label class="admin-list-label"><%- key %>:</label>
<% switch(typeof channel.settings[key]){
case "string": %>
<input id=<%- `channel-preference-${key}` %> class="channel-preference-list-item" value="<%- channel.settings[key] %>">
<input data-key="<%- key %>" class="channel-preference-list-item" value="<%- channel.settings[key] %>">
<% break;
default: %>
<input id=<%- `channel-preference-${key}` %> class="channel-preference-list-item" type="checkbox" <% if(channel.settings[key]){ %> checked <% } %>>
<input data-key="<%- key %>" class="channel-preference-list-item" type="checkbox" <% if(channel.settings[key]){ %> checked <% } %>>
<% break;
} %>
</span>