Changeset 227


Ignore:
Timestamp:
10/16/13 15:58:59 (6 years ago)
Author:
nhoyt
Message:

rule-info.js

  • modified setDetailsSummaryContent fn. to handle change of rule summary from label element to vbox

view-details.js

  • modified clearDetailsView fn. to clear all information, including rule summary and element results

view-details.xul

  • changed ainspector-rule-summary from label to vbox
  • changed id of rule result vbox to ainspector-rule-result

ai-sidebar.css

  • adapted selectors to handle rule summary change from label to vbox, and id change for ainspector-rule-result
Location:
trunk/proto-14/chrome
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/proto-14/chrome/content/rule-info.js

    r224 r227  
    5757  var pStyle  = ainspector.html.pStyle; 
    5858 
    59   var vbox = document.getElementById("ainspector-details-summary"); 
    60   ainspectorSidebar.clearContent(vbox); 
     59  var vboxSummary = document.getElementById("ainspector-rule-summary"); 
     60  ainspectorSidebar.clearContent(vboxSummary); 
     61 
     62  var vboxResult = document.getElementById("ainspector-rule-result"); 
     63  ainspectorSidebar.clearContent(vboxResult); 
    6164 
    6265  // get prefix labels 
     
    6467 
    6568  // Summary 
    66   document.getElementById("ainspector-rule-summary").value = ruleResult.getRuleSummary(); 
    67    
     69  p = getHTML("p", ruleResult.getRuleSummary(), pStyle); 
     70  addHTML(vboxSummary, p, 2); 
     71 
    6872  // Action 
    6973  h2 = getHTML("h2", labels.ACTION, h2FirstStyle); 
    70   addHTML(vbox, h2); 
     74  addHTML(vboxResult, h2); 
    7175 
    7276  p = getHTML("p", ruleResult.getResultMessage(), pStyle); 
    73   addHTML(vbox, p, 2); 
     77  addHTML(vboxResult, p, 2); 
    7478}; 
    7579 
  • trunk/proto-14/chrome/content/view-details.js

    r224 r227  
    6363 
    6464ainspectorSidebar.clearDetailsView = function () { 
     65  // clear rule summary and result content 
     66  var vboxSummary = document.getElementById("ainspector-rule-summary"); 
     67  ainspectorSidebar.clearContent(vboxSummary); 
     68 
     69  var vboxResult = document.getElementById("ainspector-rule-result"); 
     70  ainspectorSidebar.clearContent(vboxResult); 
     71 
     72  // clear element results tree 
     73  var tree = ainspectorSidebar.elementResultsTree; 
     74  tree.view = new ainspectorSidebar.TreeViewElements([]); 
     75 
     76  // clear rule information content 
     77  var vboxRuleInfo = document.getElementById("ainspector-details-rule-info"); 
     78  ainspectorSidebar.clearContent(vboxRuleInfo); 
     79 
    6580  // clear summary grid 
    6681  var summary = ainspectorSidebar.ruleDetailsSummary; 
    6782  summary.setData(ainspector.nullData); 
    68  
    69   var vboxSummary = document.getElementById("ainspector-details-summary"); 
    70   ainspectorSidebar.clearContent(vboxSummary); 
    71  
    72   var vboxRuleInfo = document.getElementById("ainspector-details-rule-info"); 
    73   ainspectorSidebar.clearContent(vboxRuleInfo); 
    7483}; 
    7584 
  • trunk/proto-14/chrome/content/view-details.xul

    r226 r227  
    1414    <spacer height="8"/> 
    1515 
    16     <label id="ainspector-rule-summary"/> 
     16    <vbox id="ainspector-rule-summary" 
     17      width="360" height="16"/> 
    1718 
    18     <vbox id="ainspector-details-summary" 
     19    <vbox id="ainspector-rule-result" 
    1920      width="360" height="78"/> 
    2021 
  • trunk/proto-14/chrome/skin/ai-sidebar.css

    r226 r227  
    129129} 
    130130 
    131 label#ainspector-rule-summary { 
     131vbox#ainspector-rule-summary { 
    132132  -moz-user-select: text; 
    133133  border: 1px solid #bbb; 
     
    143143} 
    144144 
    145 vbox#ainspector-details-summary { 
     145vbox#ainspector-rule-result { 
    146146  -moz-user-select: text; 
    147147  overflow-y: scroll; 
Note: See TracChangeset for help on using the changeset viewer.