Permalink
Browse files

Formalize updates

  • Loading branch information...
iain committed Sep 11, 2011
1 parent c0e8aa8 commit 87294858e33271edf924c16c4c74077b4c84d2df

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

Oops, something went wrong.

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

Oops, something went wrong.

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

Oops, something went wrong.

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

Oops, something went wrong.

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

Oops, something went wrong.
@@ -117,13 +117,13 @@ YUI.add('formalize', function(Y) {
// Prevent <form> from accidentally
// submitting the placeholder text.
- form.on('submit', function() {
+ form && form.on('submit', function() {
if (el.get('value') === text) {
el.set('value', '').removeClass('placeholder_text');
}
});
- form.on('reset', function() {
+ form && form.on('reset', function() {
setTimeout(Y.formalize.misc.add_placeholder, 50);
});
});
Oops, something went wrong.

0 comments on commit 8729485

Please sign in to comment.