1. Monday, June 16 2008 22:25tons of tiny bug fixes for ajax

    The past days have been hectic. I was really fed up with the small bugs related to ajax edit/update/remove/etc.

    The beasts were:

    bug1

    One page – many forms.

    This bug prevented from adding comments to multiple items on a single page. There were also problems with opening many ‘edit’ forms.

    bug2

    Drop within each

    Because of this one, you could not produce a list of drop boxes by using ‘each’ (<r:tags do='each' do='drop' set='tagged'/>). This was a pity.

    bug3

    Unlink same object in different contexts

    If an object appears inside many contexts (tag boxes for example), unlink was removing the wrong element (duplicate dom_id).

    And as a bonus for clearing all this, we can now unlink by clicking on an image/div/text instead of the default delete ().

    Example involving most of the bug fixes above:

    <ul do='images in site'><li do='each' draggable='true' do='img' mode='mini'/></ul>
    
    <ul do='tags in site'>
      <li do='each' do='drop' set='tagged'>
        <ul do='tagged'>
          <li do='each' do='unlink' do='img' mode='pv'/>
        </ul>
      </li>
    </ul>

    I am happy.

    Gaspard Bucher

    comments

    1. leave a comment