mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 07:56:23 +00:00
Remove one angular controller, we need to understand multiple controller problems
This commit is contained in:
parent
84db79a300
commit
642f78e859
@ -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;
|
||||
|
@ -116,7 +116,7 @@ var checkNewMessages = function() {
|
||||
if (typeof jsondata['photos'][peerLabel] != 'undefined') {
|
||||
peerListBuf += 'style="background-image: url(' + jsondata['photos'][peerLabel] + ');"';
|
||||
}
|
||||
peerListBuf += '></div><a href="#" ng-click="loadConversation();" mailbox-navigation="' + idxVal2 + '" style="font-weight: bold;" mailbox-label="' + peerLabel + '">' + peerLabel + ' (' + val + ')</a></li>';
|
||||
peerListBuf += '></div><a href="#" ng-click="ctCtl.loadConversation();" mailbox-navigation="' + idxVal2 + '" style="font-weight: bold;" mailbox-label="' + peerLabel + '">' + peerLabel + ' (' + val + ')</a></li>';
|
||||
$('#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 += '></div><a href="#" ng-click="loadConversation();" mailbox-navigation="' + idxVal2 + '" mailbox-label="' + peerLabel + '">' + peerLabel + '</a></li>';
|
||||
peerListBuf += '></div><a href="#" ng-click="ctCtl.loadConversation();" mailbox-navigation="' + idxVal2 + '" mailbox-label="' + peerLabel + '">' + peerLabel + '</a></li>';
|
||||
bufferedContacts.push(peerLabel);
|
||||
}
|
||||
});
|
||||
|
@ -9,7 +9,7 @@ use \OCA\OcSms\Lib\CountryCodes;
|
||||
|
||||
<div class="ng-scope" id="app" ng-app="OcSms">
|
||||
<div id="app-mailbox-peers">
|
||||
<ul ng-controller="ContactsController">
|
||||
<ul>
|
||||
<li><div id="ocsms-empty-peers">There isn't any conversation</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user