Changeset 1165 for trunk


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

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

Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/InlineStyler/InlineStyler.js

    r1085 r1165  
    462462    input.name = this.dialog.createId("borderCollapse"); 
    463463    input.type = "checkbox"; 
     464    input.value = "on"; 
    464465    this.inputs.styles['borderCollapse'] = input; 
    465466    input.id = "f_st_borderCollapse"; 
  • trunk/modules/InsertTable/dialog.html

    r1044 r1165  
    2828    <td style="width: 4em; text-align: right">Cols:</td> 
    2929    <td><input type="text" name="[cols]" id="[cols]" size="5" title="_(Number of columns)"  /></td> 
    30     <td style="text-align: right"><input type="checkbox" name="[fixed]" id="[fixed]" /></td> 
     30    <td style="text-align: right"><input type="checkbox" name="[fixed]" id="[fixed]" value="on" /></td> 
    3131    <td colspan="2"><label 
    3232    ><l10n>Fixed width columns</l10n></label></td> 
     
    7373<input type="text" size="7" id="[border_color]" name="[border_color]"/> 
    7474<br /><l10n>Collapse borders:</l10n>  
    75 <input type="checkbox" name="[border_collapse]" id="[border_collapse]" /> 
     75<input type="checkbox" name="[border_collapse]" id="[border_collapse]" value="on" /> 
    7676 
    7777<div class="space"></div> 
  • trunk/modules/InsertTable/insert_table.html

    r859 r1165  
    8484    <td style="width: 4em; text-align: right">Cols:</td> 
    8585    <td><input type="text" name="cols" id="f_cols" size="5" title="Number of columns" value="4" /></td> 
    86     <td style="text-align: right"><input type="checkbox" checked="checked" name="fixed" id="f_fixed" /></td> 
     86    <td style="text-align: right"><input type="checkbox" checked="checked" name="fixed" id="f_fixed" value="on" /></td> 
    8787    <td colspan="2"><label for="f_fixed" 
    8888    >Fixed width columns</label></td> 
  • trunk/plugins/ExtendedFileManager/manager.php

    r1054 r1165  
    221221                                <input type="hidden" id="orginal_width" /> 
    222222                                <input type="hidden" id="orginal_height" /> 
    223             <input type="checkbox" id="constrain_prop" checked="checked" onclick="javascript:toggleConstrains(this);" /><br /> 
     223            <input type="checkbox" id="constrain_prop" checked="checked" onclick="javascript:toggleConstrains(this);" value="on" /><br /> 
    224224            <label for="constrain_prop">Constrain Proportions</label><?php }?> 
    225225            </td> 
  • trunk/plugins/FindReplace/popups/find_replace.html

    r987 r1165  
    125125              <FIELDSET style="width:90%; padding: 5px"> 
    126126                <LEGEND><span>Options</span></LEGEND> 
    127                   <input id="fr_words" type="checkbox" checked onClick="clearDoc();"> 
     127                  <input id="fr_words" type="checkbox" checked onClick="clearDoc();" value="on"> 
    128128                <span onClick="e = document.getElementById('fr_words');  
    129129                e.click(); e.focus();" style="cursor:default">  
    130130                  <span>Whole words only</span></span><br /> 
    131                   <input id="fr_matchcase" type="checkbox" onClick="clearDoc();"> 
     131                  <input id="fr_matchcase" type="checkbox" onClick="clearDoc();" value="on"> 
    132132                <span onClick="e = document.getElementById('fr_matchcase');  
    133133                e.click(); e.focus();" style="cursor:default">  
     
    138138                  return false; 
    139139                  } 
    140                   clearDoc();"> 
     140                  clearDoc();" value="on"> 
    141141                <span onClick="e = document.getElementById('fr_replaceall');  
    142142                e.click(); e.focus();" style="cursor:default">  
  • trunk/plugins/Forms/popups/input.html

    r854 r1165  
    125125  <div id="chk"> 
    126126    <div class="fr">Checked</div> 
    127       <input name="checked" id="f_checked" type="checkbox" /> 
     127      <input name="checked" id="f_checked" type="checkbox" value="on" /> 
    128128    <p /> 
    129129  </div> 
  • trunk/plugins/Forms/popups/select.html

    r987 r1165  
    165165    <p /> 
    166166    <div class="fr"><nobr>Multiple Select</nobr></div> 
    167     <input name="multiple" id="f_multiple" type="checkbox" value="multiple" /> 
     167    <input name="multiple" id="f_multiple" type="checkbox" value="multiple" value="on" /> 
    168168    <p /> 
    169169    <div class="fr">Disabled</div> 
  • trunk/plugins/ImageManager/manager.php

    r999 r1165  
    134134    <td rowspan="2"> 
    135135      <div  style="position:relative"> 
    136         <img src="<?php print $IMConfig['base_url']; ?>img/locked.gif" id="imgLock" width="25" height="32" alt="Constrained Proportions" style="vertical-align: middle;" /><input type="checkbox" id="constrain_prop" checked="checked" onclick="javascript:toggleConstrains(this);" style="position:absolute;top:8px;left:0px;" /> 
     136        <img src="<?php print $IMConfig['base_url']; ?>img/locked.gif" id="imgLock" width="25" height="32" alt="Constrained Proportions" style="vertical-align: middle;" /><input type="checkbox" id="constrain_prop" checked="checked" onclick="javascript:toggleConstrains(this);" style="position:absolute;top:8px;left:0px;" value="on" /> 
    137137      </div> 
    138138    </td> 
  • trunk/plugins/InsertSnippet2/dialog.html

    r1050 r1165  
    1414     <div style="float:left"> 
    1515           <label for="[search]"><l10n>Filter</l10n></label> <input type="text" id="[search]" /> 
    16            <input type="checkbox" id="[wordbegin]" checked="checked" /><label for="[wordbegin]"><l10n>Only search word beginning</l10n></label> 
     16           <input type="checkbox" id="[wordbegin]" checked="checked" value="on" /><label for="[wordbegin]"><l10n>Only search word beginning</l10n></label> 
    1717     </div> 
    1818     <button type="button" id="[cancel]" style="float: right;"><l10n>Cancel</l10n></button> 
  • trunk/plugins/PasteText/popups/paste_text.html

    r1044 r1165  
    33<div class="buttons" id="[buttons]"> 
    44<label style="float:left;display:none" id="[paragraphOption]"> 
    5 <input type="checkbox" id="[insertParagraphs]" name="[insertParagraphs]" /> <l10n>Insert text in new paragraph</l10n>  
     5<input type="checkbox" id="[insertParagraphs]" name="[insertParagraphs]" value="on" /> <l10n>Insert text in new paragraph</l10n>  
    66</label> 
    77  <input type="button" id="[ok]"     value="_(OK)"     /> 
  • trunk/plugins/PersistentStorage/dialog.html

    r1121 r1165  
    6868            <td><input type="text" value="" id="[image_width]"/></td> 
    6969            <td rowspan="2" style="vertical-align:middle"><img width="25" height="32" alt="Constrained Proportions" id="[image_constrain_icon]" src="img/locked.gif"/> 
    70               <input type="checkbox" onclick="javascript:toggleConstrains(this);" checked="checked" id="[image_constrain]"/> 
     70              <input type="checkbox" onclick="javascript:toggleConstrains(this);" checked="checked" id="[image_constrain]" value="on" /> 
    7171              <label for="[image_constrain]">Constrain Proportions</label> 
    7272            </td> 
  • trunk/plugins/SmartReplace/dialog.html

    r1044 r1165  
    33<table style="width: 100%;border:none"> 
    44  <tr> 
    5     <td style="width:15px"><input type="checkbox" id="[enable]" name="[enable]" /></td> 
     5    <td style="width:15px"><input type="checkbox" id="[enable]" name="[enable]" value="on" /></td> 
    66    <td style="text-align:left"><l10n>Enable automatic replacements</l10n></td> 
    77  </tr> 
    88  <tr> 
    9     <td style="width:15px"><input type="checkbox" id="[convert]" name="[convert]" /></td> 
     9    <td style="width:15px"><input type="checkbox" id="[convert]" name="[convert]" value="on" /></td> 
    1010    <td style="text-align:left"><l10n>Convert all quotes and dashes in the current document</l10n> <input style="display:none" type="button" id="[ok]" value="_(OK)" /></td> 
    1111  </tr> 
  • 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    } 
  • trunk/plugins/UnFormat/dialog.html

    r1044 r1165  
    1212    <div class="space"></div> 
    1313    <div class="fr"><l10n>Formatting:</l10n></div> 
    14     <input type="checkbox" name="[formatting]" id="[formatting]" checked /> 
     14    <input type="checkbox" name="[formatting]" id="[formatting]" checked value="on" /> 
    1515    <p /> 
    1616    <div class="fr"><l10n>All HTML:</l10n></div> 
    17     <input type="checkbox" name="[html_all]" id="[html_all]" /> 
     17    <input type="checkbox" name="[html_all]" id="[html_all]" value="on" /> 
    1818    <p /> 
    1919   </fieldset> 
Note: See TracChangeset for help on using the changeset viewer.