Ignore:
Timestamp:
02/13/09 23:04:29 (11 years ago)
Author:
nicholasbs
Message:

Fixes #1386 by adding a value attribute to all checkboxes/radio buttons that didn't have any.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/SuperClean/pluginMethods.js

    r1044 r1165  
    187187    if(typeof filtDetail.label == 'undefined') 
    188188    { 
    189       htmlFilters += "        <input type=\"checkbox\" name=\"["+filter+"]\" id=\"["+filter+"]\" checked />\n"; 
     189      htmlFilters += "        <input type=\"checkbox\" name=\"["+filter+"]\" id=\"["+filter+"]\" checked value=\"on\" />\n"; 
    190190      htmlFilters += "        <label for=\"["+filter+"]\">"+this.SuperClean.editor.config.SuperClean.filters[filter]+"</label>\n"; 
    191191    } 
    192192    else 
    193193    { 
    194       htmlFilters += "        <input type=\"checkbox\" name=\"["+filter+"]\" id=\"["+filter+"]\" " + (filtDetail.checked ? "checked" : "") + " />\n"; 
     194      htmlFilters += "        <input type=\"checkbox\" name=\"["+filter+"]\" id=\"["+filter+"]\" value=\"on\"" + (filtDetail.checked ? "checked" : "") + " />\n"; 
    195195      htmlFilters += "        <label for=\"["+filter+"]\">"+filtDetail.label+"</label>\n"; 
    196196    } 
Note: See TracChangeset for help on using the changeset viewer.