Commit d5135c4f authored by ale's avatar ale

Fix a couple of typos

parent 42a7cde1
Pipeline #911 passed with stages
in 1 minute and 8 seconds
var idlogout = {};
idlogout.get_services = function() {
return JSON.parse($('#services').attr('data_values'));
return JSON.parse($('#services').attr('data-services'));
};
idlogout.logout_service = function(service) {
......@@ -27,7 +27,7 @@ idlogout.logout_service = function(service) {
idlogout.logout = function() {
var services = idlogout.get_services();
$.each(services, func(index, arg) {
$.each(services, function(index, arg) {
idlogout.logout_service(arg);
});
};
......
......@@ -32,7 +32,7 @@
{{end}}
</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>
{{else}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment