automatic reload on lists; new django decorator for ajax request
Change-Id: I3eb41de76217191268acb6053ad0c04aec0e8388
Signed-off-by: lombardofr <lombardo@everyup.it>
diff --git a/static/src/utils.js b/static/src/utils.js
index 83b580c..6763f78 100644
--- a/static/src/utils.js
+++ b/static/src/utils.js
@@ -2,8 +2,8 @@
return ("0000" + (Math.random() * Math.pow(36, 4) << 0).toString(36)).slice(-4)
}
-function openProject(pId) {
- window.location.href = '/projects/' + pId;
+function moveToLogin(next) {
+ window.location.href = (next) ? "/auth/?next="+next : '/auth/';
}