Changeset 918de7


Ignore:
Timestamp:
Jul 7, 2011, 2:17:53 PM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.8, ng_0.9
Children:
76e35c
Parents:
d50b98
Message:

dont show edit/remove buttons in storage-editor if nothing is selected

Location:
chrome/content/v_identity
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_rdfDataTree.js

    rd50b98 r918de7  
    154154    _vI_rdfDatasource : null,
    155155   
     156    onTabSelect : function () {
     157        vI_rdfDataTree.hideInfoBox();
     158        if (vI_rdfDataTree.tabbox) {
     159            vI_rdfDataTree.moveConstraints();
     160            vI_rdfDataTree.updateButtonMenu();
     161        }
     162    },
     163   
    156164    onselect : function () {
    157165        vI_rdfDataTree.moveConstraints();
     166        vI_rdfDataTree.updateButtonMenu();
    158167
    159168        var tree = vI_rdfDataTree.trees[vI_rdfDataTree.tabbox.selectedPanel.id];
     
    279288    },
    280289   
     290    updateButtonMenu : function() {
     291        vI_rdfDataTree.__updateMenu(
     292            document.getElementById("editButton_" + vI_rdfDataTree.tabbox.selectedPanel.id),
     293            document.getElementById("deleteButton_" + vI_rdfDataTree.tabbox.selectedPanel.id))
     294    },
     295   
    281296    updateContextMenu : function() {
    282297        vI_rdfDataTree.__updateMenu(
  • chrome/content/v_identity/vI_rdfDataTree.xul

    rd50b98 r918de7  
    138138
    139139<tabbox id="TreeTabbox" flex="1">
    140 <tabs onselect="vI_rdfDataTree.hideInfoBox();" >
     140<tabs onselect="vI_rdfDataTree.onTabSelect();" >
    141141<tab id="emailTab" />
    142142<tab id="maillistTab" />
     
    174174                  oncommand="vI_rdfDataTree.newItem();"/>
    175175          <button id="editButton_email" label="&editButton.label;" accesskey="&editButton.accesskey;"
    176                   oncommand="vI_rdfDataTree.modifySelected();"/>
     176                  oncommand="vI_rdfDataTree.modifySelected();" disabled="true"/>
    177177          <button id="deleteButton_email" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
    178                   oncommand="vI_rdfDataTree.removeSelected();"/>
     178                  oncommand="vI_rdfDataTree.removeSelected();" disabled="true"/>
    179179          <spacer flex="1"/>
    180180</vbox>
     
    211211                  oncommand="vI_rdfDataTree.newItem();"/>
    212212          <button id="editButton_maillist" label="&editButton.label;" accesskey="&editButton.accesskey;"
    213                   oncommand="vI_rdfDataTree.modifySelected();"/>
     213                  oncommand="vI_rdfDataTree.modifySelected();" disabled="true"/>
    214214          <button id="deleteButton_maillist" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
    215                   oncommand="vI_rdfDataTree.removeSelected();"/>
     215                  oncommand="vI_rdfDataTree.removeSelected();" disabled="true"/>
    216216          <spacer flex="1"/>
    217217</vbox>
     
    247247                  oncommand="vI_rdfDataTree.newItem();"/>
    248248          <button id="editButton_newsgroup" label="&editButton.label;" accesskey="&editButton.accesskey;"
    249                   oncommand="vI_rdfDataTree.modifySelected();"/>
     249                  oncommand="vI_rdfDataTree.modifySelected();" disabled="true"/>
    250250          <button id="deleteButton_newsgroup" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
    251                   oncommand="vI_rdfDataTree.removeSelected();"/>
     251                  oncommand="vI_rdfDataTree.removeSelected();" disabled="true"/>
    252252          <spacer flex="1"/>
    253253</vbox>
     
    288288                  oncommand="vI_rdfDataTree.newItem();"/>
    289289          <button id="editButton_filter" label="&editButton.label;" accesskey="&editButton.accesskey;"
    290                   oncommand="vI_rdfDataTree.modifySelected();"/>
     290                  oncommand="vI_rdfDataTree.modifySelected();" disabled="true"/>
    291291          <button id="deleteButton_filter" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
    292                   oncommand="vI_rdfDataTree.removeSelected();"/>
     292                  oncommand="vI_rdfDataTree.removeSelected();" disabled="true"/>
    293293          <spacer flex="1"/>
    294294          <button id="reorderUpButton_filter" label="&reorderUpButton.label;" accesskey="&reorderUpButton.accesskey;"
Note: See TracChangeset for help on using the changeset viewer.