From e0508145dddfd7d5ce242b7ea255fc05b9dc02ac Mon Sep 17 00:00:00 2001 From: Greg Ross Date: Sat, 30 Jun 2018 04:26:53 -0400 Subject: [PATCH] Fix incorrect div id for auto scroll to bottom (#245) --- js/devel/legacy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/devel/legacy.js b/js/devel/legacy.js index af1ddd5..05f3f36 100644 --- a/js/devel/legacy.js +++ b/js/devel/legacy.js @@ -95,7 +95,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' $scope.isConvLoading = false; }); - $('#app-content').scrollTop(1E10); + $('#ocsms-app-content').scrollTop(1E10); } ); }; @@ -109,7 +109,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' var fmt = $scope.formatConversation(jsondata); var conversationBuf = fmt[1]; if (conversationBuf === true) { - $('#app-content').scrollTop(1E10); + $('#ocsms-app-content').scrollTop(1E10); // This will blink the tab because there is new messages if (document.hasFocus() === false) { Sms.unreadCountCurrentConv += parseInt(fmt[0]); @@ -171,7 +171,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' /* * Decrement notification step counter, but stop it a zero - * Stop at zero permit to notify instanly the user when + * Stop at zero permit to notify instanly the user when * there is new messages in all conversations */