From c28600b0c931435b4e1f855e6cfbbc0f8b80f069 Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Wed, 23 Jan 2019 12:24:11 -0500
Subject: [PATCH] Fix account ajax overreach bug.

---
 themes/bootstrap3/js/account_ajax.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/bootstrap3/js/account_ajax.js b/themes/bootstrap3/js/account_ajax.js
index ef644751468..76d069e94c5 100644
--- a/themes/bootstrap3/js/account_ajax.js
+++ b/themes/bootstrap3/js/account_ajax.js
@@ -130,7 +130,7 @@ VuFind.register('account', function Account() {
       _submodules[name] = typeof module == 'function' ? module() : module;
     }
     var $el = $(_submodules[name].selector);
-    if ($el) {
+    if ($el.length > 0) {
       $el.removeClass("hidden");
       _statuses[name] = LOADING;
       _load(name);
-- 
GitLab