Permalink
Browse files

removendo plugin placeholder jquery (quem usa browsers antigos que at…

…ualizem, oras :P)
  • Loading branch information...
1 parent ed51b9a commit 7bad50f0ac85452cf8b9c975965fabffa08ae186 @douglasmiranda committed Jun 30, 2012
Showing with 0 additions and 22 deletions.
  1. +0 −22 static/js/global.js
View
22 static/js/global.js
@@ -57,26 +57,4 @@ $(document).ready(function(){
}
});
- // Placeholder
- $('[placeholder]').focus(function() {
- var input = $(this);
- if (input.val() == input.attr('placeholder')) {
- input.val('');
- input.removeClass('placeholder');
- }
- }).blur(function() {
- var input = $(this);
- if (input.val() == '' || input.val() == input.attr('placeholder')) {
- input.addClass('placeholder');
- input.val(input.attr('placeholder'));
- }
- }).blur();
- $('[placeholder]').parents('form').submit(function() {
- $(this).find('[placeholder]').each(function() {
- var input = $(this);
- if (input.val() == input.attr('placeholder')) {
- input.val('');
- }
- })
- });
});

0 comments on commit 7bad50f

Please sign in to comment.