From 67fa3cbe731075c03eb6f66aac50f54cee46ab56 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 2 Feb 2015 13:31:50 +0300 Subject: [PATCH] Added faqs translated links Closes #675 --- app/js/controllers.js | 12 ++++++++++++ app/partials/desktop/head.html | 2 +- app/partials/mobile/chat_modal.html | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 4c98edbf..2fe94653 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -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)); diff --git a/app/partials/desktop/head.html b/app/partials/desktop/head.html index 9ae51675..9a9c211e 100644 --- a/app/partials/desktop/head.html +++ b/app/partials/desktop/head.html @@ -21,7 +21,7 @@
  • -
  • +
  • diff --git a/app/partials/mobile/chat_modal.html b/app/partials/mobile/chat_modal.html index 74ca6f43..87f1aecb 100644 --- a/app/partials/mobile/chat_modal.html +++ b/app/partials/mobile/chat_modal.html @@ -18,7 +18,7 @@
  • - +