Commit ecc61636 authored by Chenu Denis's avatar Chenu Denis

[fix] otherListCheckbox only for other-checkbox

parent f922fedb
......@@ -148,10 +148,10 @@ var skelVanilla = {
otherListCheckbox : function() {
/* Disable false checkbox, and never remove user entered value … */
$(document).ready(function(){
$('li.checkbox-text-item [type=checkbox]').each(function(){
$('li.checkbox-text-item .other-checkbox[type=checkbox]').each(function(){
$(this).prop('disabled',true);
});
$('li.checkbox-text-item label').each(function(){
$('li.checkbox-text-item label[for$="othercbox"').each(function(){
$(this).attr('for',$(this).attr('for').replace('othercbox', 'other'));
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment