extra.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. $(document).ready(function(){
  2. //hide the checkall/uncheck all text
  3. $("#unselectall").hide();
  4. $("#unselectall2").hide();
  5. $("#Go").hide();
  6. /*
  7. * this function will toggle all check boxes in the editforms form, and also toggle the
  8. * view of the select all, unselect all text
  9. */
  10. $("#selectboxes").click(function () {
  11. $("#editform").toggleCheckboxes();
  12. if ($('input[name=trashslides]').attr('checked')) {
  13. $("#unselectall").show();
  14. $("#unselectall2").show();
  15. $("#selectall").hide();
  16. $("#selectall2").hide();
  17. }
  18. else {
  19. $("#unselectall").hide();
  20. $("#unselectall2").hide();
  21. $("#selectall").show();
  22. $("#selectall2").show();
  23. }
  24. });
  25. /*
  26. * this function is the same as above - but for the lower text - will toggle all check boxes in the editforms form, and also toggle the
  27. * view of the select all, unselect all text
  28. */
  29. $("#selectboxes2").click(function () {
  30. $("#editform").toggleCheckboxes();
  31. if ($('input[name=trashslides]').attr('checked')) {
  32. $("#unselectall").show();
  33. $("#unselectall2").show();
  34. $("#selectall").hide();
  35. $("#selectall2").hide();
  36. }
  37. else {
  38. $("#unselectall").hide();
  39. $("#unselectall2").hide();
  40. $("#selectall").show();
  41. $("#selectall2").show();
  42. }
  43. });
  44. /*
  45. * This function will be triggered when an item is selected in the drop down
  46. */
  47. $("#multipleProcessor").change(function() {
  48. //display form submit button
  49. $("#Go").show();
  50. });
  51. });