Skip to content

Commit 13bf2c4

Browse files
authored
Merge pull request #476 from jembi/OHM-625-helper-hover
Changed unsafe html to html string
2 parents b57ef0f + 04bae34 commit 13bf2c4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/scripts/controllers/usersmodal.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { getHashAndSalt, isValidMSISDN } from '../utils'
22

3-
export function UsersModalCtrl ($http, $scope, $uibModalInstance, $timeout, Api, login, Notify, Alerting, user) {
3+
export function UsersModalCtrl ($http, $scope, $uibModalInstance, $sce, $timeout, Api, login, Notify, Alerting, user) {
44
/*************************************************************/
55
/** These are the functions for the User initial load **/
66
/*************************************************************/
77

88
// default - update is false
99
$scope.update = false
10+
$scope.phoneNumberTooltip = $sce.trustAsHtml('Accepted format: <br />27123456789 <br />( 5 - 15 digits )')
1011

1112
// object for the taglist roles
1213
$scope.taglistUserRoleOptions = []

app/views/usersmodal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h4 class="modal-title" id="addUserLabel">
3838
<div class="form-group" ng-class="{ 'has-error' : ngError.msisdn }">
3939
<label>
4040
Phone number (MSISDN format)
41-
<i ng-show="uiSettings.showTooltips" tooltip-placement="top" tooltip-html-unsafe="Accepted format: <br />27123456789 <br />( 5 - 15 digits )" class="glyphicon glyphicon-question-sign tooltip-wide"></i>
41+
<i ng-show="uiSettings.showTooltips" tooltip-placement="top" uib-tooltip-html="phoneNumberTooltip" class="glyphicon glyphicon-question-sign tooltip-wide"></i>
4242
</label>
4343
<input class="form-control" type="text" ng-model="user.msisdn" />
4444
<div class="has-error-msg"><i class="glyphicon glyphicon-warning-sign"></i>MSISDN is not in the accepeted format: 27123456789 ( 5 - 15 digits )</div>

0 commit comments

Comments
 (0)