projects
/
osm
/
LW-UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
automatic reload on lists; new django decorator for ajax request
[osm/LW-UI.git]
/
static
/
src
/
utils.js
diff --git
a/static/src/utils.js
b/static/src/utils.js
index
83b580c
..
6763f78
100644
(file)
--- a/
static/src/utils.js
+++ b/
static/src/utils.js
@@
-2,8
+2,8
@@
function generateUID() {
return ("0000" + (Math.random() * Math.pow(36, 4) << 0).toString(36)).slice(-4)
}
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/'
;
}
}