X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Ffacebookapp.js;h=5deb6e42b330d7d6be6745d2a4881cd0dbbb68f0;hb=0799f48197c67dbbbd1b613f1fc9c66d9250f2ae;hp=8ef9aa532bf79f5f3f330a1c8a882594dd2ce111;hpb=f761031d0acdc03add5a6bd9a125575463da2582;p=quix0rs-gnu-social.git diff --git a/js/facebookapp.js b/js/facebookapp.js index 8ef9aa532b..5deb6e42b3 100644 --- a/js/facebookapp.js +++ b/js/facebookapp.js @@ -1,6 +1,6 @@ /* -* Laconica - a distributed open-source microblogging tool -* Copyright (C) 2008, Controlez-Vous, Inc. +* StatusNet - a distributed open-source microblogging tool +* Copyright (C) 2008, StatusNet, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -19,10 +19,12 @@ var max = 140; var noticeBox = document.getElementById('notice_data-text'); -noticeBox.addEventListener('keyup', keypress); -noticeBox.addEventListener('keydown', keypress); -noticeBox.addEventListener('keypress', keypress); -noticeBox.addEventListener('change', keypress); +if (noticeBox) { + noticeBox.addEventListener('keyup', keypress); + noticeBox.addEventListener('keydown', keypress); + noticeBox.addEventListener('keypress', keypress); + noticeBox.addEventListener('change', keypress); +} // Do our the countdown function keypress(evt) {