Changeset 247


Ignore:
Timestamp:
11/13/13 16:13:10 (6 years ago)
Author:
nhoyt
Message:
  • Removed preference: extensions.ainspector.evaluation.ruleLevels and all references to it
  • Changed version ID to 0.14.3e
Location:
trunk/proto-14
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/proto-14/chrome/content/ai-context.js

    r180 r247  
    1616  // set the Ruleset value 
    1717  document.getElementById('ainspector-option-ruleset').value = ainspectorSidebar.getRulesetName(); 
    18  
    19   // set the Level value 
    20   var levelsOption   = ainspector.evaluationPrefs.getPref('ruleLevels'); 
    21   var levelsValue = ''; 
    22  
    23   switch (levelsOption) { 
    24   case OpenAjax.a11y.EVALUATION_LEVELS.A_AA_AAA: 
    25     levelsValue = nls.getString('option.rule-levels.a-aa-aaa'); 
    26     break; 
    27   case OpenAjax.a11y.EVALUATION_LEVELS.A_AA: 
    28     levelsValue = nls.getString('option.rule-levels.a-aa'); 
    29     break; 
    30   case OpenAjax.a11y.EVALUATION_LEVELS.A: 
    31     levelsValue = nls.getString('option.rule-levels.a'); 
    32     break; 
    33   default: 
    34     break; 
    35   } 
    36   document.getElementById('ainspector-option-levels').value = levelsValue; 
    3718 
    3819  // set the Recommended Rules value 
  • trunk/proto-14/chrome/content/ai-context.xul

    r165 r247  
    1111      <label value="&ai-label.option.ruleset;" style="margin-right: 0"/> 
    1212      <label id="ainspector-option-ruleset" style="margin-left: 0"/> 
    13       <spacer width="12"/> 
    14       <label value="&ai-label.option.levels;" style="margin-right: 0"/> 
    15       <label id="ainspector-option-levels" style="margin-left: 0"/> 
    1613      <spacer width="12"/> 
    1714      <label value="&ai-label.option.recommended;" style="margin-right: 0"/> 
  • trunk/proto-14/chrome/content/datasource.js

    r241 r247  
    7575  // Get evaluation preferences 
    7676  var rulesetId = ainspectorSidebar.getRulesetId(); 
    77   var ruleLevels       = ainspector.evaluationPrefs.getPref('ruleLevels'); 
    7877  var recommendedRules = ainspector.evaluationPrefs.getPref('recommendedRules'); 
    7978  var layoutTables     = ainspector.evaluationPrefs.getPref('layoutTables'); 
     
    8483  // Set ruleset options for evaluation 
    8584  if (ruleset) { 
    86     ruleset.setEvaluationLevels(ruleLevels); 
     85    ruleset.setEvaluationLevels(OpenAjax.a11y.EVALUATION_LEVELS.A_AA_AAA); 
    8786    ruleset.setRecommendedRulesEnabled(recommendedRules); 
    8887    ruleset.setDataTableAssumption(!layoutTables); 
     
    111110    ainspector.log.debug("doc title: " + doc.title); 
    112111    ainspector.log.debug("rulesetId: " + rulesetId); 
    113     ainspector.log.debug("ruleLevels: " + ruleLevels); 
    114112    ainspector.log.debug("recommendedRules: " + recommendedRules); 
    115113    ainspector.log.debug("layoutTables: " + layoutTables); 
  • trunk/proto-14/chrome/content/preferences/evaluation.js

    r228 r247  
    3030      if (name === 'recommendedRules') 
    3131        return prefUtils.getBoolPref(name); 
    32       if (name === 'ruleLevels') 
    33         return prefUtils.getIntPref(name); 
    3432      if (name === 'layoutTables') 
    3533        return prefUtils.getBoolPref(name); 
     
    7977    break; 
    8078 
    81   case 'ruleLevels': 
    82     break; 
    83  
    8479  case 'layoutTables': 
    8580    break; 
  • trunk/proto-14/chrome/content/preferences/evaluation.xul

    r228 r247  
    1212      <preference id="ainspector-recommended-rules-pref" type="bool" 
    1313        name="extensions.ainspector.evaluation.recommendedRules"/> 
    14       <preference id="ainspector-rule-levels-pref" type="int" 
    15         name="extensions.ainspector.evaluation.ruleLevels"/> 
    1614      <preference id="ainspector-layout-tables-pref" type="bool" 
    1715        name="extensions.ainspector.evaluation.layoutTables"/> 
     
    3634 
    3735    <groupbox class="secondary"> 
    38       <caption label="&groupbox.caption.rule-levels;"/> 
    39       <vbox> 
    40         <radiogroup id="ainspector-rule-levels" preference="ainspector-rule-levels-pref"> 
    41           <radio id="ainspector-rule-levels-a-aa" 
    42             group="ainspector-rule-levels-group" value="6" 
    43             label="&label.rule-levels.a-aa;"/> 
    44           <radio id="ainspector-rule-levels-a" 
    45             group="ainspector-rule-levels-group" value="4" 
    46             label="&label.rule-levels.a;"/> 
    47         </radiogroup> 
    48       </vbox> 
    49     </groupbox> 
    50  
    51     <groupbox class="secondary"> 
    5236      <caption label="&groupbox.caption.otherOptions;"/> 
    5337      <vbox> 
  • trunk/proto-14/chrome/locale/en-US/ai-sidebar.dtd

    r234 r247  
    151151 
    152152<!ENTITY ai-label.option.ruleset     "Ruleset: "> 
    153 <!ENTITY ai-label.option.levels      "Levels: "> 
    154 <!ENTITY ai-label.option.recommended "Warnings: "> 
     153<!ENTITY ai-label.option.recommended "Incl. Rec. Rules: "> 
    155154 
    156155<!-- highlight options --> 
  • trunk/proto-14/defaults/preferences/prefs.js

    r228 r247  
    99pref("extensions.ainspector.evaluation.ruleset", 2); 
    1010pref("extensions.ainspector.evaluation.recommendedRules", true); 
    11 pref("extensions.ainspector.evaluation.ruleLevels", 6); 
    1211pref("extensions.ainspector.evaluation.layoutTables", false); 
    1312 
  • trunk/proto-14/install.rdf

    r243 r247  
    1010        <em:name>AInspector Sidebar</em:name> 
    1111        <em:type>2</em:type> 
    12         <em:version>0.14.3d</em:version> 
     12        <em:version>0.14.3e</em:version> 
    1313 
    1414        <em:targetApplication> 
Note: See TracChangeset for help on using the changeset viewer.