Changeset 6523


Ignore:
Timestamp:
Aug 28, 2014, 9:12:21 AM (9 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1835: Impossible to select a user in the "Impersonate" dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-stable/www/login.js

    r6426 r6523  
    229229  {
    230230    Buttons.addClickHandler('user_id.select', impersonate.selectUser);
     231    Events.addEventHandler('user_id', 'base-selected', impersonate.setUserCallback);
    231232  }
    232233 
     
    237238  {
    238239    var frm = document.forms[pForm];
    239     var url = 'admin/users/index.jsp?ID=' + App.getSessionId();
    240     url += '&cmd=UpdateContext&mode=selectone&callback=Impersonate.setUserCallback';
     240    var url = '&resetTemporary=1';
    241241    if (frm.user_id.length > 0)
    242242    {
     
    244244      url += '&item_id='+id;
    245245    }
    246     Dialogs.openPopup(url, 'SelectUser', 1050, 700);
     246    Dialogs.selectItem('USER', 'user_id', 0, url);
    247247  }
    248248 
     
    250250    Callback for setting the selected user.
    251251  */
    252   impersonate.setUserCallback = function(id, name)
     252  impersonate.setUserCallback = function(event)
    253253  {
    254254    var frm = document.forms[pForm];
     
    258258      Forms.addListOption(list, 0, new Option());
    259259    }
    260     list[0].value = id;
    261     list[0].text = name;
     260    list[0].value = event.detail.id;
     261    list[0].text = event.detail.name;
    262262    list.selectedIndex = 0;
    263263  }
Note: See TracChangeset for help on using the changeset viewer.