Browse Source

telegram button in travel view fixed

master
arnaucode 6 years ago
parent
commit
e1059a478c
3 changed files with 6 additions and 2 deletions
  1. +1
    -1
      package.json
  2. +4
    -0
      www/js/travel.js
  3. +1
    -1
      www/templates/travel.html

+ 1
- 1
package.json

@ -45,4 +45,4 @@
"android" "android"
] ]
} }
}
}

+ 4
- 0
www/js/travel.js

@ -285,4 +285,8 @@ angular.module('app.travel', ['pascalprecht.translate', 'ui-leaflet'])
//console.log("i: -1"); //console.log("i: -1");
return -1; return -1;
}; };
$scope.openTelegram = function(telegramuser) {
window.open('http://telegram.me/' + telegramuser, '_system', 'location=yes');
return false;
};
}); });

+ 1
- 1
www/templates/travel.html

@ -45,7 +45,7 @@
<i class="icon ion-ios-box"></i> {{'package' | translate}} <i class="icon ion-ios-box"></i> {{'package' | translate}}
</div> </div>
<a class="item item-icon-left" ng-show="travel.user.telegram" <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}} <i class="icon ion-paper-airplane"></i> @{{travel.user.telegram}}
</a> </a>
<div class="item item-icon-left" ng-show="travel.user.phone"> <div class="item item-icon-left" ng-show="travel.user.phone">

Loading…
Cancel
Save