Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 6e62bdfa

Přidáno uživatelem stepanekp před téměř 3 roky(ů)

#27 configutation select box hidden for unlogged users

Zobrazit rozdíly:

src/main/webapp/WEB-INF/templates/fragments/navbar.html
18 18
            </ul>
19 19
            <ul class="nav navbar-nav navbar-right">
20 20
                <li class="nav-item active">
21
                    <span class="nav-link">Configuration:</span>
21
                    <span class="nav-link" id="current-configuration-label">Configuration:</span>
22 22
                </li>
23 23
                <li class="nav-item active" id="current-configuration-box">
24 24
                    <form id="configuration-form" th:action="@{/setSelectedConfiguration}" method="post">
src/main/webapp/resources/js/login.js
26 26
function applyUnloggedStyle(){
27 27
    document.getElementById("login-button").hidden = false;
28 28
    document.getElementById("logout-button").hidden = true;
29
    document.getElementById("current-configuration-select").disabled = true;
29
    document.getElementById("current-configuration-select").hidden = true;
30
    document.getElementById("current-configuration-label").hidden = true;
30 31

  
31 32
    if(document.getElementById("operationalizationEditButton") != null) {
32 33
        document.getElementById("operationalizationEditButton").hidden = true;
......
42 43
    document.getElementById("logout-button").hidden = false;
43 44
    document.getElementById("user-name-container").innerText = user;
44 45
    document.getElementById("user-name-container").hidden = false;
45
    document.getElementById("current-configuration-select").disabled = false;
46
    document.getElementById("current-configuration-select").hidden = false;
47
    document.getElementById("current-configuration-label").hidden = false;
46 48

  
47 49
    if(document.getElementById("operationalizationEditButton") != null) {
48 50
        document.getElementById("operationalizationEditButton").hidden = false;

Také k dispozici: Unified diff