From 53d7ecbb8b4ae5a2633bc0630674c2a12073d472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ad=C3=A1n=20S=C3=A1nchez=20de=20Pedro=20Crespo?= Date: Sat, 27 Jul 2013 16:09:42 +0200 Subject: [PATCH] Fix tremendous bug found thanks to comment on Marketplace --- main.htm | 2 +- scripts/waalt/app.js | 2 +- scripts/waalt/bindings.js | 5 +++++ scripts/waalt/messenger.js | 5 ++--- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/main.htm b/main.htm index 53355bdb..7f22f753 100644 --- a/main.htm +++ b/main.htm @@ -94,7 +94,7 @@

Just kidding. LOQUI is free forever!

LOQUI version

-

You are running LOQUI Pre-Alpha v0.0.10

+

You are running pre-alpha

diff --git a/scripts/waalt/app.js b/scripts/waalt/app.js index f1102b3b..199e637f 100644 --- a/scripts/waalt/app.js +++ b/scripts/waalt/app.js @@ -2,7 +2,7 @@ var App = { - version: '009', + version: 'v0.0.11', connected: false, default: { diff --git a/scripts/waalt/bindings.js b/scripts/waalt/bindings.js index ef9e7835..c78bbbe5 100644 --- a/scripts/waalt/bindings.js +++ b/scripts/waalt/bindings.js @@ -179,6 +179,11 @@ document.addEventListener("visibilitychange", function() { } }); +$$('[data-var]').each(function () { + var key = $$(this).data('var'); + var value = App[key]; + $$(this).text(value); +}); /* This is a provisional workaround until misterious bug concerning text inputs is solved */ diff --git a/scripts/waalt/messenger.js b/scripts/waalt/messenger.js index a0ed6cf2..8400dc03 100644 --- a/scripts/waalt/messenger.js +++ b/scripts/waalt/messenger.js @@ -357,11 +357,10 @@ var Messenger = { Messenger.chats.splice(index, 1); Messenger.chats.push(temp); Store.simple('mchats', Messenger.chats); - if (li) { - console.log("Moviendo..."); + if (li.length) { ul.prepend(li.outerHTML); li.remove(); - } else console.log("No hay nĂ¡ que mover..."); + } }, chatDelete: function (jid) {