Permalink
Commits on May 16, 2012
  1. @sad-spirit

    repeat.add() can receive explicit index for a new item, also returns …

    …the index for an added item
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@325713 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed May 16, 2012
Commits on May 15, 2012
  1. @sad-spirit
  2. @sad-spirit
  3. @sad-spirit
Commits on May 14, 2012
  1. @sad-spirit

    Use spl_object_hash() instead of element ids as key for storing valid…

    …ation errors of repeated elements, errors now work properly (and even survive id changes).
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@325689 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed May 14, 2012
Commits on May 13, 2012
  1. @sad-spirit

    Having $element->__toString() in buildCommonFields() made that method…

    … not-quite-usable by renderer plugins
    
    Additionally provide 'class' attribute for groups, as in Default renderer
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@325667 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed May 13, 2012
Commits on May 1, 2012
  1. @sad-spirit
Commits on Apr 18, 2012
  1. @sad-spirit
Commits on Apr 15, 2012
  1. @sad-spirit

    Drop code that prevented overriding the existing renderer type: it do…

    …esn't make sense now
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@325209 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 15, 2012
  2. @sad-spirit

    Per discussion: removed 'Add...' link from default template for Repea…

    …t, added link and button to example instead.
    
    Possibility to remove() item by index
    Updated package.xml
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@325202 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 15, 2012
Commits on Apr 14, 2012
  1. @sad-spirit
  2. @sad-spirit

    An example for repeat elements, event callbacks for repeat JS

    Frozen repeat no longer outputs Javascript
    Repeat's constructor accepts prototype, setters return $this
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@325176 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 14, 2012
Commits on Apr 13, 2012
  1. @sad-spirit

    Added Repeat to Factory and package.xml, added "release" JS files

    Started release notes for 2.0.0beta1 (need better description for Repeat)
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@325159 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 13, 2012
  2. @sad-spirit

    Merged repeat_element branch

    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@325158 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 13, 2012
  3. @sad-spirit
  4. @sad-spirit

    Conditionally backup id attributes (needed only for output) and error…

    … messages (do we need them at all?)
    
    Backup elements' values, this prevents leftover shit when cloning prototypes client-side
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/branches/repeat_element@325156 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 13, 2012
  5. @sad-spirit
  6. @sad-spirit
  7. @sad-spirit

    Do not force purely numeric indexes

    Changed index generation in JS, previous approach made it impossible to reorder repeated items
    Renamed setIdentityField() to setIndexField(), added setIndexes() / getIndexes()
    Added possibility to guess index field name
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/branches/repeat_element@325153 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 13, 2012
  8. @sad-spirit

    Register an autoloader in TestHelper.php rather than try to require_o…

    …nce everything in separate tests. Tests are *far* more likely to run separately now.
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/branches/repeat_element@325139 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 13, 2012
Commits on Apr 12, 2012
  1. @sad-spirit
  2. @sad-spirit
  3. @sad-spirit

    JSDoc for qf.Repeat

    sad-spirit committed Apr 12, 2012
  4. @sad-spirit
  5. @sad-spirit

    JavascriptBuilder now has a separate method for returning form setup …

    …code
    
    Container's __toString() automatically appends setup code to HTML: no need to define custom __toString() in Hierselect and Repeat
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/branches/repeat_element@325088 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 12, 2012
  6. @sad-spirit
  7. @sad-spirit
Commits on Apr 11, 2012
  1. @sad-spirit

    Optimized replaceIndexTemplates() and restoreChildAttributes(), the l…

    …atter is run only once, not on each iteration
    
    Added JS library to add/remove repeated items
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/branches/repeat_element@325067 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 11, 2012
  2. @sad-spirit

    works with Groups as prototypes

    added a template for Repeat to Default renderer
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/branches/repeat_element@325056 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 11, 2012
  3. @sad-spirit
  4. @sad-spirit

    get rid of $prototype, store it in $elements

    proxy less methods
    recursive iterator now iterates over prototype as well, get rid of duplicate ids
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/branches/repeat_element@325038 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 11, 2012
  5. @sad-spirit
  6. @sad-spirit

    If checkbox was somehow checked and the form did not contain submit d…

    …ata sources, the checked attribute was quite unlikely to be ever removed by updateValue()
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/branches/repeat_element@325029 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 11, 2012
Commits on Apr 10, 2012
  1. @sad-spirit

    An attempt to implement a generic "repeat" element. On a separate bra…

    …nch for a time being, will merge to trunk if it comes out OK
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/branches/repeat_element@325004 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 10, 2012
Commits on Apr 6, 2012
  1. @sad-spirit

    Fixed a couple of bugs spotted in http://news.php.net/php.pear.genera…

    …l/31496
    
     * Autogenerated ids should not start with numbers
     * Explicitly given value="0" for checkboxes should not be replaced by value="1"
    
    git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@324926 c90b9560-bf6c-de11-be94-00142212c4b1
    sad-spirit committed Apr 6, 2012