Changeset 40bd28


Ignore:
Timestamp:
Feb 12, 2017, 1:15:36 PM (3 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
4198ab
Parents:
821d4b
Message:

only show button if it makes sense

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/vI_rdfDataEditor.js

    r821d4b r40bd28  
    9696        // set extra values
    9797        rdfDataEditor.__identityData.extras.setValuesToEnvironment();
    98         this.hideUnusedEditorFields();
     98       
     99        // only display hide-switch if not all extras are enabled in preferences
     100        var allEnabled = true;
     101        rdfDataEditor.__identityData.extras.loopThroughExtras(
     102          function (extra) {
     103            allEnabled = allEnabled && vI.vIprefs.get(extra.option);
     104          }
     105        )
     106        if (allEnabled)
     107            document.getElementById("vI_storageExtras_hideUnusedEditorFields").setAttribute("hidden", true);
     108        else
     109            this.hideUnusedEditorFields();
     110       
    99111        Log.debug("init done");
    100112      },
Note: See TracChangeset for help on using the changeset viewer.