Skip to content

Commit

Permalink
Merge pull request #476 from jembi/OHM-625-helper-hover
Browse files Browse the repository at this point in the history
Changed unsafe html to html string
  • Loading branch information
MattyJ007 authored Jan 15, 2018
2 parents b57ef0f + 04bae34 commit 13bf2c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/scripts/controllers/usersmodal.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { getHashAndSalt, isValidMSISDN } from '../utils'

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

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

// object for the taglist roles
$scope.taglistUserRoleOptions = []
Expand Down
2 changes: 1 addition & 1 deletion app/views/usersmodal.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h4 class="modal-title" id="addUserLabel">
<div class="form-group" ng-class="{ 'has-error' : ngError.msisdn }">
<label>
Phone number (MSISDN format)
<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>
<i ng-show="uiSettings.showTooltips" tooltip-placement="top" uib-tooltip-html="phoneNumberTooltip" class="glyphicon glyphicon-question-sign tooltip-wide"></i>
</label>
<input class="form-control" type="text" ng-model="user.msisdn" />
<div class="has-error-msg"><i class="glyphicon glyphicon-warning-sign"></i>MSISDN is not in the accepeted format: 27123456789 ( 5 - 15 digits )</div>
Expand Down

0 comments on commit 13bf2c4

Please sign in to comment.