From 642f78e859f6328df94aa9de1530553512af29cf Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Fri, 9 Jan 2015 19:37:16 +0000 Subject: [PATCH] Remove one angular controller, we need to understand multiple controller problems --- db/configmapper.php | 1 + js/script.js | 4 ++-- templates/main.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/db/configmapper.php b/db/configmapper.php index d4af5cd..3a7ddbc 100644 --- a/db/configmapper.php +++ b/db/configmapper.php @@ -49,6 +49,7 @@ class ConfigMapper extends Mapper { try { $sql = "SELECT `key` FROM `*PREFIX*ocsms_config` WHERE `key` = ? AND `user` = ?"; $this->findEntity($sql, array($key, $this->user)); + return true; } catch (DoesNotExistException $e){ return false; diff --git a/js/script.js b/js/script.js index a6797ef..5295fad 100644 --- a/js/script.js +++ b/js/script.js @@ -116,7 +116,7 @@ var checkNewMessages = function() { if (typeof jsondata['photos'][peerLabel] != 'undefined') { peerListBuf += 'style="background-image: url(' + jsondata['photos'][peerLabel] + ');"'; } - peerListBuf += '>' + peerLabel + ' (' + val + ')'; + peerListBuf += '>' + peerLabel + ' (' + val + ')'; $('#app-mailbox-peers ul').prepend(peerListBuf); bufferedContacts.push(peerLabel); @@ -320,7 +320,7 @@ function fetchInitialPeerList(jsondata) { if (typeof jsondata['photos'][peerLabel] != 'undefined') { peerListBuf += 'style="background-image: url(' + jsondata['photos'][peerLabel] + ');"'; } - peerListBuf += '>' + peerLabel + ''; + peerListBuf += '>' + peerLabel + ''; bufferedContacts.push(peerLabel); } }); diff --git a/templates/main.php b/templates/main.php index e1bd695..f562036 100644 --- a/templates/main.php +++ b/templates/main.php @@ -9,7 +9,7 @@ use \OCA\OcSms\Lib\CountryCodes;
-
    +
    • There isn't any conversation