From 0741b7c8b0e24de234b308c644c38cd94daf3b07 Mon Sep 17 00:00:00 2001 From: rtz12 Date: Sun, 13 Nov 2016 06:05:46 +0100 Subject: Nun kann man auch geil auf den Usernamen klicken 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'; function externalServiceClick(e) { var row = dom.closest(e.target, (el) => el.classList.contains('authorizable')); if (row === null) { - alert('nada'); return; } var authType = row.getAttribute('data-auth-type'), authUrl = row.getAttribute('data-auth-url'), - coupleUrl = row.getAttribute('data-couple-url'); + coupleUrl = row.getAttribute('data-couple-url'); switch (authType) { case 'copy-paste': 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 @@ {{ $model := . }} {{ range .DisplayUser.ExternalServices }} {{ if (or .IsEnabled $isCurrentUser) }} - + {{ if not .IsEnabled }} Hinzufügen! -- cgit v0.10.1