Changeset ffd870af93241cbcef1621ba288c81e28202e700 in indico


Ignore:
Timestamp:
02/16/12 16:38:48 (3 months ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Children:
5ece86dca17e873611dd3d1e1825425cf29c7609
Parents:
1f82a3e48056413344642a544e10f0a58b68ca2e
git-author:
Pedro Ferreira <jose.pedro.ferreira@…> (02/16/12 16:38:48)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (02/16/12 16:39:25)
Message:

[FIX] "Add chairperson" was not working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/htdocs/js/indico/Core/Widgets/UserList.js

    r558065 rffd870  
    283283        if (this.inPlaceMenu) { 
    284284            this.inPlaceMenu.observeClick(function(e) { 
    285                 var menuItems = {}; 
    286  
    287                 menuItems[$T('Add existing')] = function() { 
    288                     self._addExistingUser($T("Add ") + self.userCaption, true, this.confId, false, true, true, false, true); 
    289                 }; 
    290                 menuItems[$T('Add new')] = function() { 
    291                     self._addNonExistingUser(); 
     285                var menuItems = { 
     286                    'add_existing': { 
     287                        action: function() { 
     288                            self._addExistingUser($T("Add ") + self.userCaption, true, this.confId, false, true, true, false, true); 
     289                        }, 
     290                        display: $T('Add existing') 
     291                    }, 
     292                    'add_new': { 
     293                        action: function() { 
     294                            self._addNonExistingUser(); 
     295                        }, 
     296                        display: $T('Add new') 
     297                    } 
    292298                }; 
    293299 
Note: See TracChangeset for help on using the changeset viewer.