[admin] Add ng-sanitize

This commit is contained in:
nemunaire 2016-12-26 01:16:49 +01:00
parent 793ae81244
commit 13c6d44953
4 changed files with 4 additions and 1 deletions

View File

@ -48,6 +48,7 @@ const indextpl = `<!DOCTYPE html>
<script src="/js/angular.min.js"></script> <script src="/js/angular.min.js"></script>
<script src="{{.urlbase}}js/angular-resource.min.js"></script> <script src="{{.urlbase}}js/angular-resource.min.js"></script>
<script src="/js/angular-route.min.js"></script> <script src="/js/angular-route.min.js"></script>
<script src="/js/angular-sanitize.min.js"></script>
<script src="{{.urlbase}}js/app.js"></script> <script src="{{.urlbase}}js/app.js"></script>
</body> </body>
</html> </html>

View File

@ -46,6 +46,7 @@
<script src="/js/angular.min.js"></script> <script src="/js/angular.min.js"></script>
<script src="/js/angular-resource.min.js"></script> <script src="/js/angular-resource.min.js"></script>
<script src="/js/angular-route.min.js"></script> <script src="/js/angular-route.min.js"></script>
<script src="/js/angular-sanitize.min.js"></script>
<script src="/js/app.js"></script> <script src="/js/app.js"></script>
</body> </body>
</html> </html>

1
admin/static/js/angular-sanitize.min.js vendored Symbolic link
View File

@ -0,0 +1 @@
../../../frontend/static/js/angular-sanitize.min.js

View File

@ -1,4 +1,4 @@
angular.module("FICApp", ["ngRoute", "ngResource"]) angular.module("FICApp", ["ngRoute", "ngResource", "ngSanitize"])
.config(function($routeProvider, $locationProvider) { .config(function($routeProvider, $locationProvider) {
$routeProvider $routeProvider
.when("/themes", { .when("/themes", {