Guest User

Untitled

a guest
Jan 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. jQuery(function(){
  2.  
  3. $("#lista li").live("click", function(){
  4. $(this).zmienStan();
  5.  
  6. if ($(this).hasClass('z_glowy')){
  7. $(this).hide('puff');
  8. }
  9.  
  10. });
  11.  
  12. $('form input[type="text"]:first').focus();
  13.  
  14. $('#dodaj_robote input[type="submit"]').click(function(){
  15. var robota = $('#dodaj_robote input[type="text"]').val();
  16. var li = $('ul#lista li:first').clone();
  17. var wypelnione_li = li.text(robota);
  18. wypelnione_li.removeClass('hidden');
  19. wypelnione_li.usunKlase();
  20. $('ul#lista').prepend(wypelnione_li);
  21. $('#dodaj_robote input[type="text"]').val('');
  22. $('input[type="text"]:first').focus();
  23. return false;
  24. });
  25.  
  26.  
  27. $("#lista ").sortable();
  28.  
  29. });
Add Comment
Please, Sign In to add comment