diff --git a/db/configmapper.php b/db/configmapper.php index 126f2ae..d4af5cd 100644 --- a/db/configmapper.php +++ b/db/configmapper.php @@ -47,7 +47,7 @@ class ConfigMapper extends Mapper { public function hasKey ($key, $value){ try { - $sql = "SELECT key FROM `*PREFIX*ocsms_config` WHERE `key` = ? AND `user` = ?"; + $sql = "SELECT `key` FROM `*PREFIX*ocsms_config` WHERE `key` = ? AND `user` = ?"; $this->findEntity($sql, array($key, $this->user)); return true; } catch (DoesNotExistException $e){ @@ -57,7 +57,7 @@ class ConfigMapper extends Mapper { public function getKey ($key) { try { - $query = \OCP\DB::prepare("SELECT value FROM `*PREFIX*ocsms_config` WHERE `key` = ? AND `user` = ?"); + $query = \OCP\DB::prepare("SELECT `value` FROM `*PREFIX*ocsms_config` WHERE `key` = ? AND `user` = ?"); $result = $query->execute(array($key, $this->user)); while($row = $result->fetchRow()) { return $this->crypto->decrypt($row["value"]); diff --git a/js/script.js b/js/script.js index 76ec235..a6797ef 100644 --- a/js/script.js +++ b/js/script.js @@ -33,7 +33,11 @@ app.controller('SettingsController', ['$scope', } ]); -app.controller('ContactsController' ['$scope', function ($scope) { +app.controller('ContactsController' ['$scope', + function ($scope) { + $scope.loadConversation = function () { + alert('loadConversation'); + }; } ]); @@ -112,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); @@ -316,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 f562036..e1bd695 100644 --- a/templates/main.php +++ b/templates/main.php @@ -9,7 +9,7 @@ use \OCA\OcSms\Lib\CountryCodes;
-