From df95a7f71a6f89f5521576f624753609bb846367 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 22 Jul 2014 16:04:23 -1000 Subject: [PATCH] Move ui init out of nacl callback and remove some lines that no longer apply --- js/popup.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/js/popup.js b/js/popup.js index f3f45438..24f328ba 100644 --- a/js/popup.js +++ b/js/popup.js @@ -15,19 +15,16 @@ */ + +new Whisper.ConversationListView({el: $('#contacts')}); +new Whisper.ConversationComposeView({el: $('body')}); +Whisper.Threads.fetch({reset: true}); + textsecure.registerOnLoadFunction(function() { if (textsecure.storage.getUnencrypted("number_id") === undefined) { extension.navigator.tabs.create("options.html"); } else { - - new Whisper.ConversationListView({el: $('#contacts')}); - new Whisper.ConversationComposeView({el: $('body')}); - Whisper.Threads.fetch({reset: true}); - $('.my-number').text(textsecure.storage.getUnencrypted("number_id").split(".")[0]); textsecure.storage.putUnencrypted("unreadCount", 0); extension.navigator.setBadgeText(""); - $("#me").click(function() { - $('#popup_send_numbers').val($('.my-number').text()); - }); } });