Skip to content
Snippets Groups Projects
Commit 4627b82a authored by Demian Katz's avatar Demian Katz
Browse files

Improved function order.

parent c09d0d8d
No related merge requests found
...@@ -4,14 +4,6 @@ ...@@ -4,14 +4,6 @@
* Functions and event handlers specific to record pages. * Functions and event handlers specific to record pages.
*/ */
function setUpCheckRequest() {
$('.checkRequest').each(function(i) {
if($(this).hasClass('checkRequest')) {
var isValid = checkRequestIsValid(this, this.href);
}
});
}
function checkRequestIsValid(element, requestURL) { function checkRequestIsValid(element, requestURL) {
var recordId = requestURL.match(/\/Record\/([^\/]+)\//)[1]; var recordId = requestURL.match(/\/Record\/([^\/]+)\//)[1];
var vars = {}, hash; var vars = {}, hash;
...@@ -45,6 +37,14 @@ function checkRequestIsValid(element, requestURL) { ...@@ -45,6 +37,14 @@ function checkRequestIsValid(element, requestURL) {
}); });
} }
function setUpCheckRequest() {
$('.checkRequest').each(function(i) {
if($(this).hasClass('checkRequest')) {
var isValid = checkRequestIsValid(this, this.href);
}
});
}
function registerAjaxCommentRecord() { function registerAjaxCommentRecord() {
$('form[name="commentRecord"]').unbind('submit').submit(function(){ $('form[name="commentRecord"]').unbind('submit').submit(function(){
if (!$(this).valid()) { return false; } if (!$(this).valid()) { return false; }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment