Changeset 8518b6


Ignore:
Timestamp:
Aug 25, 2018, 11:57:32 AM (14 months ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
dbf0b6
Parents:
190c29
Message:

don't store identity-version in *.dtd anymore

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • content/bindings/vI_notificationBox.xml

    r190c29 r8518b6  
    2323  <binding id="vI_notification" extends="chrome://global/content/bindings/notification.xml#notification">
    2424    <content>
    25       <xul:hbox class="notification-inner outset" flex="1" xbl:inherits="type" style="background-color: appworkspace; color: windowtext">
     25      <xul:hbox class="notification-inner" flex="1" xbl:inherits="type">
    2626        <xul:hbox anonid="details" align="center" flex="1"
    2727                  oncommand="this.parentNode.parentNode._doButtonCommand(event);">
     
    2929     <xul:vbox><xul:spacer flex="1" />
    3030         <xul:label id="virtualIdentityExtension_vINotificationTitle" hidden="true" align="right" />
    31          <xul:label class="v_identity_logo virtualIdentityExtension_vINotificationLogo"
    32            value="&vident.vidLogo.label; &vident.version;" align="right" />
     31         <xul:label id="virtualIdentityExtension_vINotificationLogo" class="v_identity_logo virtualIdentityExtension_vINotificationLogo"
     32           value="&vident.vidLogo.label; " align="right" />
    3333          <xul:spacer flex="1" /></xul:vbox>
    3434          <xul:textbox id="virtualIdentityExtension_vINotificationTextbox" anonid="messageText" class="plain" height="3"
     
    4545      </xul:hbox>
    4646    </content>
     47    <implementation>
     48    <constructor>
     49      <![CDATA[
     50      let statusbarLabel = document.getElementById("virtualIdentityExtension_vINotificationLogo");
     51      statusbarLabel.setAttribute("value", statusbarLabel.getAttribute("value") + virtualIdentityExtension.extensionVersion);
     52      ]]>
     53    </constructor>
     54    </implementation>
    4755  </binding>
     56 
     57 
     58
     59 
    4860</bindings>
  • content/prefDialog/vI_prefDialog.js

    r190c29 r8518b6  
    4848        var panelIndex = (tabpanel) ? tabpanel : document.getElementById('prefTabbox').selectedIndex
    4949        var prefTree = document.getElementById('prefTabbox').selectedPanel.getElementsByAttribute("class", "vIprefTree")[0];
    50         var currentVersion = document.getElementById("virtualIdentityExtension_extVersion").getAttribute("value").split(/\./);
     50        var currentVersion = vI.extensionVersion.split(/\./);
    5151        var extVersion = currentVersion[0] + "." + currentVersion[1];
    52         var url = "https://www.absorb.it/virtual-id/wiki/docs/" + extVersion + "/tab" + panelIndex + "/tree" + prefTree.currentIndex;
     52        var url = "http://www.absorb.it/virtual-id/wiki/docs/" + extVersion + "/tab" + panelIndex + "/tree" + prefTree.currentIndex;
    5353        document.getElementById("virtualIdentityExtension_remoteBrowserBox").url = url;
    5454      },
     
    214214            //             dump("setting textbox value: " + element.getAttribute("prefstring") + " " + element.getAttribute("value") + "\n");
    215215          }
     216        let versionLabel = document.getElementById("logoButton1");
     217        versionLabel.setAttribute("label", versionLabel.getAttribute("label") + vI.extensionVersion);
     218        versionLabel = document.getElementById("logoButton2");
     219        versionLabel.setAttribute("label", versionLabel.getAttribute("label") + vI.extensionVersion);
    216220        },
    217221
     
    406410        Log.debug("load url " + aURL);
    407411        uri.spec = aURL;
    408         protocolSvc.loadUrl(uri);
     412        protocolSvc.loadURI(uri);
    409413      }
    410414    }
  • content/prefDialog/vI_prefDialog.xul

    r190c29 r8518b6  
    109109            <spacer flex="1"/>
    110110            <button id="logoButton1" class="v_identity_logo v_identity_logo_button"
    111                 label="&vident.vidLogo.label; &vident.version;"
     111                label="&vident.vidLogo.label; "
    112112                oncommand="virtualIdentityExtension.prefDialog.openURL('http://www.absorb.it/virtual-id')"
    113113                tooltiptext="&vI_prefDialog.vidLogo.tooltiptext;" />
     
    126126        <spacer flex="1" />
    127127        <button id="logoButton2" class="v_identity_logo v_identity_logo_button"
    128                 label="&vident.vidLogo.label; &vident.version;"
     128                label="&vident.vidLogo.label; "
    129129                oncommand="virtualIdentityExtension.prefDialog.openURL('http://www.absorb.it/virtual-id')"
    130130                tooltiptext="&vI_prefDialog.vidLogo.tooltiptext;" hidden="true" />
     
    748748</tabbox>
    749749<browserbox id="virtualIdentityExtension_remoteBrowserBox" class="virtualIdentityExtension_remoteBrowserBox" localCss="localDoc.css" flex="1" hidden="true" type="content" />
    750 <label id="virtualIdentityExtension_extVersion" value="&vident.version;" hidden="true" />
    751750</hbox>
    752751<textbox id="virtualIdentityExtension_debugBox" />
  • content/vI_overlay.js

    r190c29 r8518b6  
    3737    const virtualIdentity_ID = "{dddd428e-5ac8-4a81-9f78-276c734f75b8}"
    3838    AddonManager.getAddonByID(virtualIdentity_ID, function (addon) {
    39       if (addon)
     39      if (addon) {
    4040        vI.extensionVersion = addon.version;
     41        Log.debug("current version = " + vI.extensionVersion);
     42      }
    4143    });
    4244
  • locale/cs-CZ/v_identity.dtd

    r190c29 r8518b6  
    1 <!ENTITY vident.version "0.9.36">
    21<!ENTITY vident.vidLogo.label "virtual identity">
    32<!ENTITY vident.accPane.prettyName.prefix "virtual Id">
  • locale/de-DE/v_identity.dtd

    r190c29 r8518b6  
    1 <!ENTITY vident.version "0.9.36">
    21<!ENTITY vident.vidLogo.label "virtual identity">
    32<!ENTITY vident.accPane.prettyName.prefix "virtuelle Id">
  • locale/en-US/v_identity.dtd

    r190c29 r8518b6  
    1 <!ENTITY vident.version "0.9.36">
    21<!ENTITY vident.vidLogo.label "virtual identity">
    32<!ENTITY vident.accPane.prettyName.prefix "virtual Id">
  • locale/es-ES/v_identity.dtd

    r190c29 r8518b6  
    1 <!ENTITY vident.version "0.9.36">
    21<!ENTITY vident.vidLogo.label "Virtual identity">
    32<!ENTITY vident.accPane.prettyName.prefix "Identidad virtual">
  • locale/fr/v_identity.dtd

    r190c29 r8518b6  
    1 <!ENTITY vident.version "0.9.36">
    21<!ENTITY vident.vidLogo.label "Virtual Identity">
    32<!ENTITY vident.accPane.prettyName.prefix "Id virtuelle">
  • locale/nl/v_identity.dtd

    r190c29 r8518b6  
    1 <!ENTITY vident.version "0.9.36">
    21<!ENTITY vident.vidLogo.label "Virtual Identity">
    32<!ENTITY vident.accPane.prettyName.prefix "virtuele ID">
  • locale/ru-RU/v_identity.dtd

    r190c29 r8518b6  
    1 <!ENTITY vident.version "0.9.36">
    21<!ENTITY vident.vidLogo.label "ВОртуальМые лОчМые ЎаММые">
    32<!ENTITY vident.accPane.prettyName.prefix "ВОртуальМый ">
Note: See TracChangeset for help on using the changeset viewer.