Skip to content
Snippets Groups Projects
Commit d5135c4f authored by ale's avatar ale
Browse files

Fix a couple of typos

parent 42a7cde1
Branches
No related tags found
No related merge requests found
var idlogout = {}; var idlogout = {};
idlogout.get_services = function() { idlogout.get_services = function() {
return JSON.parse($('#services').attr('data_values')); return JSON.parse($('#services').attr('data-services'));
}; };
idlogout.logout_service = function(service) { idlogout.logout_service = function(service) {
...@@ -27,7 +27,7 @@ idlogout.logout_service = function(service) { ...@@ -27,7 +27,7 @@ idlogout.logout_service = function(service) {
idlogout.logout = function() { idlogout.logout = function() {
var services = idlogout.get_services(); var services = idlogout.get_services();
$.each(services, func(index, arg) { $.each(services, function(index, arg) {
idlogout.logout_service(arg); idlogout.logout_service(arg);
}); });
}; };
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
{{end}} {{end}}
</ul> </ul>
<div id="#services" data_values="[{{range $i, $svc := .Services}}{{if gt $i 0}},{{end}}{%22idx%22:{{$i}},%22name%22:%22{{$svc.Name}}%22,%22url%22:%22{{$svc.URL}}%22}{{end}}]"></div> <div id="#services" data-services="[{{range $i, $svc := .Services}}{{if gt $i 0}},{{end}}{%22idx%22:{{$i}},%22name%22:%22{{$svc.Name}}%22,%22url%22:%22{{$svc.URL}}%22}{{end}}]"></div>
</div> </div>
{{else}} {{else}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment