From 4627b82a43fe118c0131872c30309fc910a9ad21 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 18 Jan 2013 12:15:26 -0500 Subject: [PATCH] Improved function order. --- themes/blueprint/js/record.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/themes/blueprint/js/record.js b/themes/blueprint/js/record.js index 581b2b3cb55..049a84c0bdf 100644 --- a/themes/blueprint/js/record.js +++ b/themes/blueprint/js/record.js @@ -4,14 +4,6 @@ * 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) { var recordId = requestURL.match(/\/Record\/([^\/]+)\//)[1]; var vars = {}, hash; @@ -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() { $('form[name="commentRecord"]').unbind('submit').submit(function(){ if (!$(this).valid()) { return false; } -- GitLab