Changeset aaf5bcb in indico


Ignore:
Timestamp:
06/14/10 15:21:36 (3 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, new-webex, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
f25ab4
Parents:
c9d743
git-author:
Leszek Syroka <leszek.marek.syroka@…> (05/20/10 14:57:08)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (06/14/10 15:21:36)
Message:

[FIX] Focus on specific fields

  • in add contribution and search user dialog focus at the top textfield is set after creation of the popup
  • in search user dialog pressing enter, while there is only one person found, aceepts this person
  • fix#361
  • reviewed by jbenito: avoid accepting after second ENTER.
Location:
indico/htdocs/js/indico/Management
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/htdocs/js/indico/Management/Timetable.js

    rd91d89 raaf5bcb  
    254254        this.roomEditor.postDraw(); 
    255255        this.ServiceDialogWithButtons.prototype.postDraw.call(this); 
     256        $E('addContributionFocusField').dom.focus(); 
    256257    }, 
    257258 
     
    368369            datecomponent = [$T('Duration'), self.timeField]; 
    369370        } 
    370  
    371371        return IndicoUtil.createFormFromMap( 
    372372            [ 
    373373                [ 
    374374                    $T('Title'), 
    375                     $B(this.parameterManager.add(Html.edit({}), 'text', false), 
     375                    $B(this.parameterManager.add(Html.edit({id:'addContributionFocusField'}), 'text', false), 
    376376                       info.accessor('title')) 
    377377                ], 
  • indico/htdocs/js/indico/Management/Users.js

    r701dc2 raaf5bcb  
    217217        var self = this; 
    218218 
    219         var familyName = new EnterObserverTextBox("text",{style:{width:"100%"}}, function() { 
     219        var familyName = new EnterObserverTextBox("text",{style:{width:"100%"},id:'userSearchFocusField'}, function() { 
    220220            self._searchAction(); 
    221221            return false; 
     
    299299    draw: function() { 
    300300        return this.SimpleSearchPanel.prototype.draw.call(this); 
    301     } 
     301    }, 
    302302}, 
    303303 
     
    755755        } 
    756756        this.ExclusivePopupWithButtons.prototype.postDraw.call(this); 
     757        $E('userSearchFocusField').dom.focus(); 
    757758    } 
    758759}, 
Note: See TracChangeset for help on using the changeset viewer.