Changeset c71e95b in github


Ignore:
Timestamp:
Apr 12, 2012 4:39:40 AM (14 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
28391b4
Parents:
2c4d0bc
Message:
  • Fix adding contact form fields in situation when the fieldset is empty. Fixes issue with lost manager/assistant fields in LDAP addressbook
Location:
program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    r1ba07f0 rc71e95b  
    45644564        appendcontainer = $('#contactsection'+section+' .contactcontroller'+col); 
    45654565 
    4566       if (!appendcontainer.length) 
    4567         appendcontainer = $('<fieldset>').addClass('contactfieldgroup contactcontroller'+col).insertAfter($('#contactsection'+section+' .contactfieldgroup').last()); 
     4566      if (!appendcontainer.length) { 
     4567        var sect = $('#contactsection'+section), 
     4568          lastgroup = $('.contactfieldgroup', sect).last(); 
     4569        appendcontainer = $('<fieldset>').addClass('contactfieldgroup contactcontroller'+col); 
     4570        if (lastgroup.length) 
     4571          appendcontainer.insertAfter(lastgroup); 
     4572        else 
     4573          sect.prepend(appendcontainer); 
     4574      } 
    45684575 
    45694576      if (appendcontainer.length && appendcontainer.get(0).nodeName == 'FIELDSET') { 
  • program/steps/addressbook/func.inc

    r4cf42fd rc71e95b  
    670670            } 
    671671 
    672             if (!$content) 
     672            if (!$content && !$edit_mode) 
    673673                continue; 
    674674 
Note: See TracChangeset for help on using the changeset viewer.