mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-06 19:16:45 +01:00
telegram button in travel view fixed
This commit is contained in:
@@ -285,4 +285,8 @@ angular.module('app.travel', ['pascalprecht.translate', 'ui-leaflet'])
|
||||
//console.log("i: -1");
|
||||
return -1;
|
||||
};
|
||||
$scope.openTelegram = function(telegramuser) {
|
||||
window.open('http://telegram.me/' + telegramuser, '_system', 'location=yes');
|
||||
return false;
|
||||
};
|
||||
});
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<i class="icon ion-ios-box"></i> {{'package' | translate}}
|
||||
</div>
|
||||
<a class="item item-icon-left" ng-show="travel.user.telegram"
|
||||
ng-href="http://telegram.me/{{travel.user.telegram}}">
|
||||
ng-click="openTelegram(user.telegram)">
|
||||
<i class="icon ion-paper-airplane"></i> @{{travel.user.telegram}}
|
||||
</a>
|
||||
<div class="item item-icon-left" ng-show="travel.user.phone">
|
||||
|
||||
Reference in New Issue
Block a user