parent
51b8e7b93a
commit
67fa3cbe73
@ -359,6 +359,18 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
});
|
||||
};
|
||||
|
||||
$scope.openFaq = function () {
|
||||
var url = 'https://telegram.org/faq';
|
||||
switch (Config.I18n.locale) {
|
||||
case 'es-es': url += '/es'; break;
|
||||
case 'it-it': url += '/it'; break;
|
||||
case 'de-de': url += '/de'; break;
|
||||
case 'ko-ko': url += '/ko'; break;
|
||||
case 'pt-br': url += '/br'; break;
|
||||
};
|
||||
window.open(url, '_blank');
|
||||
};
|
||||
|
||||
$scope.openContacts = function () {
|
||||
ContactsSelectService.selectContact().then(function (userID) {
|
||||
$scope.dialogSelect(AppUsersManager.getUserString(userID));
|
||||
|
@ -21,7 +21,7 @@
|
||||
<li><a ng-click="openSettings()">
|
||||
<i class="icon icon-settings"></i><span my-i18n="im_settings"></span>
|
||||
</a></li>
|
||||
<li><a href="https://telegram.org/faq" target="_blank">
|
||||
<li><a ng-click="openFaq()">
|
||||
<i class="icon icon-faq"></i><span my-i18n="head_telegram_faq"></span>
|
||||
</a></li>
|
||||
<li><a href="" ng-click="openChangelog()">
|
||||
|
@ -18,7 +18,7 @@
|
||||
<a ng-click="editTitle()" my-i18n="group_modal_menu_edit_group"></a>
|
||||
</li>
|
||||
<li ng-if="chatFull.chat._ != 'chatForbidden' && !chatFull.chat.left">
|
||||
<a ng-click="leaveGroup()" my-i18n="group_modal_menu_leave_group"></a>
|
||||
<a ng-click="leaveGroup()" my-i18n="group_modal_menu_leave"></a>
|
||||
</li>
|
||||
<li>
|
||||
<a ng-click="flushHistory()" my-i18n="group_modal_menu_delete_chat"></a>
|
||||
|
Loading…
Reference in New Issue
Block a user