Replaced split ID's with DOM Dataset in channel settings page.
This commit is contained in:
parent
e539b9d75d
commit
92659929b9
4 changed files with 14 additions and 15 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue