diff --git a/accounts/static/accounts.js b/accounts/static/accounts.js new file mode 100644 index 0000000..d2e1d36 --- /dev/null +++ b/accounts/static/accounts.js @@ -0,0 +1,14 @@ +/*global $ */ + +var initialize = function (navigator) { + $('#id_login').on('click', function() { + navigator.id.request(); + }); +}; + +window.Superlists = { + Accounts: { + initialize: initialize + } +}; + diff --git a/accounts/static/tests/test.html b/accounts/static/tests/test.html new file mode 100644 index 0000000..ca716eb --- /dev/null +++ b/accounts/static/tests/test.html @@ -0,0 +1,38 @@ + + + + + Javascript tests + + + + +
+
+ Sign in +
+ + + + + + + + diff --git a/lists/templates/base.html b/lists/templates/base.html index c0e9aba..ad20416 100644 --- a/lists/templates/base.html +++ b/lists/templates/base.html @@ -37,7 +37,16 @@

{% block header_text %}{% endblock %}

+ + + diff --git a/superlists/settings.py b/superlists/settings.py index c8ec717..382c549 100644 --- a/superlists/settings.py +++ b/superlists/settings.py @@ -37,6 +37,7 @@ 'django.contrib.messages', 'django.contrib.staticfiles', 'lists', + 'accounts', ) MIDDLEWARE_CLASSES = (