Skip to content

Commit 2831a2e

Browse files
committed
fixed: notifications localisation
1 parent 7e4dde1 commit 2831a2e

File tree

8 files changed

+44
-14
lines changed

8 files changed

+44
-14
lines changed

ne-modules-all.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,6 +2704,16 @@ angular.module('neDirectives',['neObject'])
27042704
}
27052705
};
27062706
}])
2707+
.directive('neBindHtml',['$sce', function($sce) {
2708+
return {
2709+
restrict: 'A',
2710+
link: function(scope, element, attrs) {
2711+
attrs.$observe('neBindHtml', function(htmlText){
2712+
element.html(htmlText);
2713+
});
2714+
}
2715+
};
2716+
}])
27072717
.filter('html', ['$sce', function ($sce) {
27082718
return function (text) {
27092719
return $sce.trustAsHtml(text);
@@ -4060,8 +4070,8 @@ angular.module('neNotifications',['neLoading'])
40604070
' </td>'+
40614071
' <td style="padding:0px 5px">'+
40624072
' <div ng-if="!n.include">'+
4063-
' <strong ng-if="n.title">{{n.title|translate}}<br></strong>'+
4064-
' {{n.text|translate}}'+
4073+
' <strong ng-if="n.title"><span ne-bind-html="{{n.title|translate}}"></span><br></strong>'+
4074+
' <span ne-bind-html="{{n.text|translate}}"></span>'+
40654075
' </div>'+
40664076
' <div ng-if="n.include" ng-include="n.include"></div>'+
40674077
' </td>'+

ne-modules-all.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ne-modules-all.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ne-modules.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,6 +2704,16 @@ angular.module('neDirectives',['neObject'])
27042704
}
27052705
};
27062706
}])
2707+
.directive('neBindHtml',['$sce', function($sce) {
2708+
return {
2709+
restrict: 'A',
2710+
link: function(scope, element, attrs) {
2711+
attrs.$observe('neBindHtml', function(htmlText){
2712+
element.html(htmlText);
2713+
});
2714+
}
2715+
};
2716+
}])
27072717
.filter('html', ['$sce', function ($sce) {
27082718
return function (text) {
27092719
return $sce.trustAsHtml(text);
@@ -4060,8 +4070,8 @@ angular.module('neNotifications',['neLoading'])
40604070
' </td>'+
40614071
' <td style="padding:0px 5px">'+
40624072
' <div ng-if="!n.include">'+
4063-
' <strong ng-if="n.title">{{n.title|translate}}<br></strong>'+
4064-
' {{n.text|translate}}'+
4073+
' <strong ng-if="n.title"><span ne-bind-html="{{n.title|translate}}"></span><br></strong>'+
4074+
' <span ne-bind-html="{{n.text|translate}}"></span>'+
40654075
' </div>'+
40664076
' <div ng-if="n.include" ng-include="n.include"></div>'+
40674077
' </td>'+

ne-modules.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ne-modules.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ne-directives.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,16 @@ angular.module('neDirectives',['neObject'])
332332
}
333333
};
334334
}])
335+
.directive('neBindHtml',['$sce', function($sce) {
336+
return {
337+
restrict: 'A',
338+
link: function(scope, element, attrs) {
339+
attrs.$observe('neBindHtml', function(htmlText){
340+
element.html(htmlText);
341+
});
342+
}
343+
};
344+
}])
335345
.filter('html', ['$sce', function ($sce) {
336346
return function (text) {
337347
return $sce.trustAsHtml(text);

src/ne-notifications.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ angular.module('neNotifications',['neLoading'])
207207
' </td>'+
208208
' <td style="padding:0px 5px">'+
209209
' <div ng-if="!n.include">'+
210-
' <strong ng-if="n.title">{{n.title|translate}}<br></strong>'+
211-
' {{n.text|translate}}'+
210+
' <strong ng-if="n.title"><span ne-bind-html="{{n.title|translate}}"></span><br></strong>'+
211+
' <span ne-bind-html="{{n.text|translate}}"></span>'+
212212
' </div>'+
213213
' <div ng-if="n.include" ng-include="n.include"></div>'+
214214
' </td>'+

0 commit comments

Comments
 (0)