Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
replaces ng-bind-html-unsafe to ng-bind-html
Browse files Browse the repository at this point in the history
on current angular version this is not available anymore

closes #28
  • Loading branch information
Leonardo Menezes committed Dec 9, 2013
1 parent f4745e3 commit 39d7226
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/kopf.js
Original file line number Diff line number Diff line change
Expand Up @@ -1554,9 +1554,9 @@ function CreateIndexController($scope, $location, $timeout, AlertService) {
$scope.replicas = '';
}
}
function GlobalController($scope, $location, $timeout, ConfirmDialogService, AlertService) {
function GlobalController($scope, $location, $timeout, $sce, ConfirmDialogService, AlertService) {
$scope.dialog = ConfirmDialogService;
$scope.version = "0.3";
$scope.version = "0.3.1";
$scope.username = null;
$scope.password = null;
$scope.alerts_service = AlertService;
Expand Down Expand Up @@ -1644,7 +1644,7 @@ function GlobalController($scope, $location, $timeout, ConfirmDialogService, Ale

$scope.displayInfo=function(title,info) {
$scope.modal.title = title;
$scope.modal.info = jsonTree.create(info);
$scope.modal.info = $sce.trustAsHtml(jsonTree.create(info));
$('#modal_info').modal({show:true,backdrop:true});
}

Expand Down
2 changes: 1 addition & 1 deletion modals/modal_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h4 class="modal-title">{{modal.title}}</h4>
</div>
<div class="modal-body">
<pre class="modal-json response-pre" ng-bind-html-unsafe="modal.info"></pre>
<pre class="modal-json response-pre" ng-bind-html="modal.info"></pre>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elasticsearch-kopf",
"version": "0.3.0",
"version": "0.3.1",
"description": "kopf - simple web administration tool for ElasticSearch",
"main": "index.html",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/kopf/controllers/global.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function GlobalController($scope, $location, $timeout, ConfirmDialogService, AlertService) {
function GlobalController($scope, $location, $timeout, $sce, ConfirmDialogService, AlertService) {
$scope.dialog = ConfirmDialogService;
$scope.version = "0.3";
$scope.version = "0.3.1";
$scope.username = null;
$scope.password = null;
$scope.alerts_service = AlertService;
Expand Down Expand Up @@ -88,7 +88,7 @@ function GlobalController($scope, $location, $timeout, ConfirmDialogService, Ale

$scope.displayInfo=function(title,info) {
$scope.modal.title = title;
$scope.modal.info = jsonTree.create(info);
$scope.modal.info = $sce.trustAsHtml(jsonTree.create(info));
$('#modal_info').modal({show:true,backdrop:true});
}

Expand Down

0 comments on commit 39d7226

Please sign in to comment.