Changeset 214


Ignore:
Timestamp:
10/03/13 00:17:33 (6 years ago)
Author:
nhoyt
Message:

Changed AInspector Sidebar version in install.rdf. The About dialog now gets the version string using the AddonManager? API. The result is that now the version only has to be changed in one place. Added about.js, which uses ainspector namespace for storing About dialog info and functions.

Location:
trunk/proto-14
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/proto-14/chrome/content/about.xul

    r196 r214  
    1313  orient="vertical"  
    1414  autostretch="always"  
    15   onload="sizeToContent(); setOpenAjaxVersion();"  
     15  onload="sizeToContent(); ainspector.setAddonVersion(); ainspector.setLibraryVersion();"  
    1616  buttons="accept" 
    1717  buttonlabelaccept="&about.close;"> 
    18    
     18 
    1919  <script src="library/oaa_a11y_evaluation.js"/> 
    20  
    21   <script type="text/javascript"> 
    22     function setOpenAjaxVersion () { 
    23       var version = OpenAjax.a11y.getVersion(); 
    24       var node = document.getElementById('ai-sidebar.oaa-version'); 
    25       if (node) node.setAttribute('value', version);  
    26     } 
    27   </script> 
     20  <script src="about.js"/> 
    2821 
    2922  <groupbox align="center" orient="horizontal" style="background: white;"> 
    3023    <vbox> 
    3124      <text value="&ai-sidebar.title;" style="font-weight: bold; font-size: large;"/> 
     25 
    3226      <separator class="thin"/> 
    33       <text value="&about.version; &ai-sidebar.version;" style="font-weight: bold;"/> 
     27      <text value="&about.version;" style="font-weight: bold;"/> 
     28      <text id="ainspector-version" value="" style="padding: 0 &about.indent;"/> 
     29 
    3430      <separator class="thin"/> 
    3531      <text value="&about.description;" style="font-weight: bold;"/> 
     
    3935      <text value="&about.line4;" style="padding: 0 &about.indent;"/> 
    4036      <text value="&about.line5;" style="padding: 0 &about.indent;"/> 
     37 
    4138      <separator class="thin"/> 
    4239      <text value="&about.oaa-version;" style="font-weight: bold;"/> 
    43       <text id="ai-sidebar.oaa-version" value="" style="padding: 0 &about.indent;"/> 
     40      <text id="ainspector-oaa-version" value="" style="padding: 0 &about.indent;"/> 
    4441      <separator class="thin"/> 
    4542      <text value="&about.created-by;" style="font-weight: bold;"/> 
    4643      <text value="&about.author1;" style="padding: 0 &about.indent;"/> 
     44 
    4745      <separator class="thin"/> 
    4846      <text value="&about.contrib-by;" style="font-weight: bold;"/> 
    4947      <text value="&about.author2;" style="padding: 0 &about.indent;"/> 
    5048      <text value="&about.author3;" style="padding: 0 &about.indent;"/> 
     49 
    5150      <separator class="thin"/> 
    5251      <text value="&about.distribution;" style="font-weight: bold;"/> 
  • trunk/proto-14/chrome/locale/en-US/ai-sidebar.dtd

    r208 r214  
    11<!ENTITY ainspector.title "AInspector"> 
    22<!ENTITY ai-sidebar.title "&ainspector.title; Sidebar"> 
    3 <!ENTITY ai-sidebar.version "0.1.14-01"> 
    43 
    54<!ENTITY ai-button.label.back              "Back"> 
  • trunk/proto-14/install.rdf

    r200 r214  
    1010        <em:name>AInspector Sidebar</em:name> 
    1111        <em:type>2</em:type> 
    12         <em:version>0.1.14-01</em:version> 
     12        <em:version>0.1.14-02</em:version> 
    1313 
    1414        <em:targetApplication> 
Note: See TracChangeset for help on using the changeset viewer.