Changeset 9d2a3a8 in github


Ignore:
Timestamp:
Sep 29, 2010 4:11:51 AM (3 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
bd911ba8
Parents:
08aa031
Message:

Focus search box or first edit field on page load

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    re019f2d r9d2a3a8  
    302302          this.enable_command('show', 'edit', true); 
    303303 
    304         if ((this.env.action=='add' || this.env.action=='edit') && this.gui_objects.editform) 
     304        if ((this.env.action=='add' || this.env.action=='edit') && this.gui_objects.editform) { 
    305305          this.enable_command('save', true); 
    306         else 
     306          $("input[type='text']").first().select(); 
     307        } 
     308        else if (this.gui_objects.qsearchbox) { 
    307309          this.enable_command('search', 'reset-search', 'moveto', true); 
     310          $(this.gui_objects.qsearchbox).select(); 
     311        } 
    308312 
    309313        if (this.contact_list && this.contact_list.rowcount > 0) 
Note: See TracChangeset for help on using the changeset viewer.