From 9bff34ea1353534fd4c8c741e836dfe161c9e89d Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Mon, 13 Jul 2015 17:49:36 +0000
Subject: [PATCH] Bug: user clearTimer to clear timeout

---
 scp/js/ticket.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scp/js/ticket.js b/scp/js/ticket.js
index c48209a34..4cfb20a7c 100644
--- a/scp/js/ticket.js
+++ b/scp/js/ticket.js
@@ -276,7 +276,7 @@ var autoLock = {
     },
 
     resetTimer: function(time) {
-        clearTimeout(autoLock.timerId);
+        autoLock.clearTimer();
         autoLock.timerId = setTimeout(
           function () { autoLock.monitorEvents(); },
           time || 30000
@@ -284,7 +284,7 @@ var autoLock = {
     },
 
     destroy: function() {
-        autoLock.clearTimeout();
+        autoLock.clearTimer();
         autoLock.lockId = 0;
     }
 };
-- 
GitLab