Commit 237f5b10 authored by Benjamin Rousselière's avatar Benjamin Rousselière
Browse files

fix/typeahead_securityLevel_modif_user

parent 672af63c
......@@ -102,7 +102,6 @@
</div>
</div>
<span class="hide" id="securityLevel"><?merge user.securityLevel ?></span>
<span class="hide" id="whatAmI"><?merge whatAmI ?></span>
<span class="hide" id="emptyOrganization_text">No organization chosen</span>
<span class="hide" id="badPasswordVerification_text">Passwords does not match</span>
<span class="hide" id="invalidEmail_text">Email malformed</span>
......
......@@ -29,6 +29,7 @@
</div>
</div>
</div>
<span class="hide" id="whatAmI"><?merge whatAmI ?></span>
<span class="hide" id="ownerOrgId"><?merge user.ownerOrgId ?></span>
<span class="hide" id="noServiceFound">No service found</span>
<span class="hide" id="editMyProfile">true</span>
......@@ -37,10 +38,7 @@
window.localStorage.clear();
var whatAmI = $('#whatAmI').text();
var displayOrganizationsUrl = '/organizations/todisplay';
if (whatAmI != 'userWithoutSecurityLevel') {
displayOrganizationsUrl += '?orgUnit=true&ownerOrg=false';
}
var displayOrganizationsUrl = '/organizations/todisplay?orgUnit=true';
var organizations = new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('displayName'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment