Permalink
Browse files

* removed deprecated stuff

* prepare release 2.0.0 (finally!)

git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm2/trunk@326347 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 06c6199 commit ef3d0dbe38d7b814b600164e21ef836a6d4311dd @sad-spirit sad-spirit committed Jun 26, 2012
Showing with 62 additions and 66 deletions.
  1. +1 −1 data/js/min/quickform-repeat.js
  2. +6 −6 data/js/min/quickform.js
  3. +0 −7 data/js/quickform-repeat.js
  4. +0 −9 data/quickform.css
  5. +0 −7 js/src/repeat.js
  6. +11 −11 js/src/validator.js
  7. +44 −25 package.xml

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -362,10 +362,3 @@ qf.elements.Repeat.prototype = {
{
}
};
-
-/**
- * Alias for qf.elements.Repeat, in case someone managed to rely on that name
- * @deprecated will be removed in the next release
- * @type {Function}
- */
-qf.Repeat = qf.elements.Repeat;
View
@@ -37,15 +37,6 @@
margin: 0.7em 0 0 0;
text-align: right;
}
-/* deprecated, used pre-2.0.0beta1 */
-.quickform label.element {
- display: block;
- float: left;
- width: 30%;
- padding: 0;
- margin: 0.5em 0 0 0;
- text-align: right;
-}
.quickform input, .quickform textarea, .quickform select {
width: auto;
}
View
@@ -362,10 +362,3 @@ qf.elements.Repeat.prototype = {
{
}
};
-
-/**
- * Alias for qf.elements.Repeat, in case someone managed to rely on that name
- * @deprecated will be removed in the next release
- * @type {Function}
- */
-qf.Repeat = qf.elements.Repeat;
View
@@ -81,17 +81,6 @@ qf.Validator = function(form, rules)
*/
this.errors = new qf.Map();
- /**
- * CSS classes to use when marking validation status
- * @type {Object}
- */
- this.classes = {
- error: 'error',
- valid: 'valid',
- message: 'error',
- ancestor: 'element'
- };
-
form.validator = this;
qf.events.addListener(form, 'submit', qf.Validator.submitHandler);
@@ -138,6 +127,17 @@ qf.Validator.liveHandler = function(event)
qf.Validator.prototype = {
/**
+ * CSS classes to use when marking validation status
+ * @type {Object}
+ */
+ classes: {
+ error: 'error',
+ valid: 'valid',
+ message: 'error',
+ ancestor: 'element'
+ },
+
+ /**
* Called before starting the validation. May be used e.g. to clear the errors from form elements.
* @param {HTMLFormElement} form The form being validated currently
*/
View
@@ -41,39 +41,22 @@
<email>golgote@mamasam.com</email>
<active>yes</active>
</lead>
- <date>2012-05-22</date>
+ <date>2012-06-26</date>
<version>
- <release>2.0.0RC1</release>
+ <release>2.0.0</release>
<api>2.0.0</api>
</version>
<stability>
- <release>beta</release>
+ <release>stable</release>
<api>stable</api>
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>
-Bug fixes
- * Server-side validation errors for elements inside Repeats are properly
- displayed
- * Javascript for Repeat elements moved to a more proper qf.elements.Repeat
- namespace, old qf.Repeat is kept as an alias but is deprecated
- * Fixed markup in usage examples (related to bug #19097)
- * Callback renderer now generates the same markup as Default renderer out of
- the box, this addresses bug #19097 and allows correct behaviour of
- client-side validation and Repeat elements
-
-Changes
- * HTML_QuickForm2::getValue() no longer returns values for internal form
- fields (request #19403)
- * It is no longer possible to set validation errors on hidden elements or
- create Rules that set such errors, doing this will result in an Exception
- * add() method of qf.elements.Repeat can accept an explicit index for a new
- item, returns the index for added item
- * Array Renderer: changes to buildCommonFields() make it easier to use by
- Renderer plugins, arrays built for groups contain 'class' attribute
-
-Backwards compatibility issues
- * Items marked deprecated will be removed in release 2.0.0
+ * Leftover 'foo' no longer stays in grouped element's name when renaming group
+ named 'foo[foo]' (bug #19477)
+ * 'classes' property of qf.Validator moved to its prototype, making it easier
+ to override
+ * Items marked deprecated previously are removed
</notes>
<contents>
<dir name="/">
@@ -712,6 +695,42 @@ Backwards compatibility issues
</phprelease>
<changelog>
<release>
+ <date>2012-05-22</date>
+ <version>
+ <release>2.0.0RC1</release>
+ <api>2.0.0</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>stable</api>
+ </stability>
+ <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
+ <notes>
+Bug fixes
+ * Server-side validation errors for elements inside Repeats are properly
+ displayed
+ * Javascript for Repeat elements moved to a more proper qf.elements.Repeat
+ namespace, old qf.Repeat is kept as an alias but is deprecated
+ * Fixed markup in usage examples (related to bug #19097)
+ * Callback renderer now generates the same markup as Default renderer out of
+ the box, this addresses bug #19097 and allows correct behaviour of
+ client-side validation and Repeat elements
+
+Changes
+ * HTML_QuickForm2::getValue() no longer returns values for internal form
+ fields (request #19403)
+ * It is no longer possible to set validation errors on hidden elements or
+ create Rules that set such errors, doing this will result in an Exception
+ * add() method of qf.elements.Repeat can accept an explicit index for a new
+ item, returns the index for added item
+ * Array Renderer: changes to buildCommonFields() make it easier to use by
+ Renderer plugins, arrays built for groups contain 'class' attribute
+
+Backwards compatibility issues
+ * Items marked deprecated will be removed in release 2.0.0
+ </notes>
+ </release>
+ <release>
<date>2012-04-18</date>
<version>
<release>2.0.0beta2</release>

0 comments on commit ef3d0db

Please sign in to comment.