stat.js 559 B

12345678910111213141516171819202122232425
  1. $(document).ready(function()
  2. {
  3. if(mode == 'edit')
  4. {
  5. $('tr.edit').show();
  6. $('tr.view').hide();
  7. }
  8. else
  9. {
  10. $('tr.edit').hide();
  11. $('tr.view').show();
  12. }
  13. $('.singleEdit').click(function()
  14. {
  15. if($('tr.edit').is(':visible')) return false;
  16. $(this).parents('tr').next('tr.edit').show();
  17. $(this).parents('tr').next('tr.edit').children('td.singleSave').show();
  18. $(this).parents('tr').hide();
  19. })
  20. /* expand active tree. */
  21. $('.tree li.active .hitarea').click();
  22. })