Browse Source

Fixed IM panel click

master
Igor Zhukov 10 years ago
parent
commit
d60fe645f3
  1. 1
      app/js/services.js
  2. 2
      app/partials/im.html
  3. 4
      app/partials/user_modal.html

1
app/js/services.js

@ -779,6 +779,7 @@ angular.module('myApp.services', []) @@ -779,6 +779,7 @@ angular.module('myApp.services', [])
}
function fillHistoryStorage (inputPeer, maxID, fullLimit, historyStorage) {
// console.log('fill history storage', inputPeer, maxID, fullLimit, angular.copy(historyStorage));
return MtpApiManager.invokeApi('messages.getHistory', {
peer: inputPeer,
offset: 0,

2
app/partials/im.html

@ -95,7 +95,7 @@ @@ -95,7 +95,7 @@
<h4 ng-switch-when="video">Videos</h4>
<h4 ng-switch-when="documents">Documents</h4>
<h4 ng-switch-default ng-switch="historyPeer.id > 0">
<h4 ng-switch-default ng-switch="historyPeer.id > 0" ng-click="showPeerInfo()">
<div ng-switch-when="true">
<span ng-bind-html="historyPeer.data.rFullName"></span>
<small class="im_peer_online">{{historyPeer.data | userStatus}}</small>

4
app/partials/user_modal.html

@ -29,10 +29,10 @@ @@ -29,10 +29,10 @@
<button class="btn btn-link dropdown-toggle">More<i class="icon icon-caret"></i></button>
<ul class="dropdown-menu">
<li ng-if="user._ == 'userContact'">
<a ng-click="importContact(true)">Edit</a>
<a ng-click="importContact(true)">Edit contact</a>
</li>
<li ng-if="user._ == 'userContact'">
<a ng-click="deleteContact()">Delete Contact</a>
<a ng-click="deleteContact()">Delete contact</a>
</li>
<li ng-if="user.phone.length > 0 &amp;&amp; user._ != 'userContact'">
<a ng-click="importContact()">Add to contacts</a>

Loading…
Cancel
Save