Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

form_validate.js 837B

123456789101112
  1. $(document).ready(function() {
  2. var path = window.location.pathname.split('/').reverse()[0].split(".")[0];
  3. var action = (window.location.search.match(/action=([^&]+q)/)||[,''])[1];
  4. if (path == "forums" && action == "new") $("#newthreadform").validate();
  5. if (path == "reports" && action == "report") $("#report_form").validate();
  6. if (path == "inbox" && (action == "viewconv" || action == "compose")) $("#messageform").validate();
  7. if (path == "user" && action == "notify") $("#filter_form").validate();
  8. if (path == "requests" && action == "new") $("#request_form").preventDoubleSubmission();
  9. if (path == "sitehistory" && action == "edit") $("#event_form").validate();
  10. if (path == "tools" && action == "calendar") $("#event_form").validate();
  11. if (path == "tools" && action == "mass_pm") $("#messageform").validate();
  12. });