diff options
author | rtz12 <koenig@fagott.pw> | 2016-11-13 05:05:46 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2016-11-13 05:05:46 (UTC) |
commit | 0741b7c8b0e24de234b308c644c38cd94daf3b07 (patch) | |
tree | 6b2b4e10d6c599c8ed5cd85c6569372201f58148 | |
parent | c6df1d768240d14e8129b51d6916931f1c4f35db (diff) |
Nun kann man auch geil auf den Usernamen klicken
-rw-r--r-- | assets_src/js/user.js | 3 | ||||
-rw-r--r-- | views/pages/user.html | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/assets_src/js/user.js b/assets_src/js/user.js index c697780..fb3ab7c 100644 --- a/assets_src/js/user.js +++ b/assets_src/js/user.js | |||
@@ -3,12 +3,11 @@ import * as dom from './lib/dom'; | |||
3 | function externalServiceClick(e) { | 3 | function externalServiceClick(e) { |
4 | var row = dom.closest(e.target, (el) => el.classList.contains('authorizable')); | 4 | var row = dom.closest(e.target, (el) => el.classList.contains('authorizable')); |
5 | if (row === null) { | 5 | if (row === null) { |
6 | alert('nada'); | ||
7 | return; | 6 | return; |
8 | } | 7 | } |
9 | var authType = row.getAttribute('data-auth-type'), | 8 | var authType = row.getAttribute('data-auth-type'), |
10 | authUrl = row.getAttribute('data-auth-url'), | 9 | authUrl = row.getAttribute('data-auth-url'), |
11 | coupleUrl = row.getAttribute('data-couple-url'); | 10 | coupleUrl = row.getAttribute('data-couple-url'); |
12 | switch (authType) { | 11 | switch (authType) { |
13 | case 'copy-paste': | 12 | case 'copy-paste': |
14 | window.open(authUrl); | 13 | window.open(authUrl); |
diff --git a/views/pages/user.html b/views/pages/user.html index e654d96..3c9d145 100644 --- a/views/pages/user.html +++ b/views/pages/user.html | |||
@@ -23,7 +23,7 @@ | |||
23 | {{ $model := . }} | 23 | {{ $model := . }} |
24 | {{ range .DisplayUser.ExternalServices }} | 24 | {{ range .DisplayUser.ExternalServices }} |
25 | {{ if (or .IsEnabled $isCurrentUser) }} | 25 | {{ if (or .IsEnabled $isCurrentUser) }} |
26 | <a href="#" {{ if not .IsEnabled }} data-auth-type="{{ .AuthType }}" data-auth-url="{{ .AuthorizeURL }}" data-couple-url="{{ .CoupleURL }}" {{ end }} class="collection-item {{ if not .IsEnabled }} authorizable {{ end }}"> | 26 | <a href="{{ if and .IsEnabled .ProfileLink }}{{ .ProfileLink }}{{ else }}#{{ end }}" {{ if not .IsEnabled }} data-auth-type="{{ .AuthType }}" data-auth-url="{{ .AuthorizeURL }}" data-couple-url="{{ .CoupleURL }}" {{ end }} class="collection-item {{ if not .IsEnabled }} authorizable {{ end }}"> |
27 | <span class="badge {{ if not .IsEnabled }} new no-caption {{ end }}"> | 27 | <span class="badge {{ if not .IsEnabled }} new no-caption {{ end }}"> |
28 | {{ if not .IsEnabled }} | 28 | {{ if not .IsEnabled }} |
29 | Hinzufügen! | 29 | Hinzufügen! |