Created function in the global app to use for edit lock checks.
 
     // show the edit form
     editRegistrant: function(){
-        if ( app.regEventLock ) {
-            alert('Please finish what your doing first!');
+        if ( app.checkForEditLock() === true ) {
             return;
         }
         this.$('.reg-edit-form').show();
     // add new account
     addNewAccount: function(){
         // check for the lock
-        if ( app.regEventLock ) {
-            alert('Please finish what your doing first!');
+        if ( app.checkForEditLock() === true ) {
             return;
         }
         this.$('.glm-add-new-account').hide();
 
 
     // show the edit form
     editRegistrant: function(){
-        if ( app.regEventLock ) {
-            alert('Please finish what your doing first!');
+        if ( app.checkForEditLock() === true ) {
             return;
         }
         this.$('.reg-edit-form').show();
 
     // add new account
     addNewAccount: function(){
         // check for the lock
-        if ( app.regEventLock ) {
-            alert('Please finish what your doing first!');
+        if ( app.checkForEditLock() === true ) {
             return;
         }
         this.$('.glm-add-new-account').hide();
 
         var regex = {literal}/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;{/literal}
         return regex.test(email);
     },
+    regEventLock: false,
+    checkForEditLock: function(){
+        console.log(app.regEventLock);
+        if ( app.regEventLock === true ) {
+            alert('Please complete your other edit first.');
+            return true;
+        } else {
+            return false;
+        }
+    },
     {if $regEvent.time_specific.value}
         timeSpecific: true,
     {else}
         timeSpecific: false,
     {/if}
-    regEventLock: false,
 };
 var regEvent = '';
 var cart = '';