projects
/
qcg-portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8cb1584
)
gridftp: remember last visited location
author
Maciej Tronowski
<mtro@man.poznan.pl>
Thu, 7 May 2015 13:59:54 +0000
(15:59 +0200)
committer
Maciej Tronowski
<mtro@man.poznan.pl>
Thu, 7 May 2015 13:59:54 +0000
(15:59 +0200)
filex/static/filex/filex.js
patch
|
blob
|
history
diff --git
a/filex/static/filex/filex.js
b/filex/static/filex/filex.js
index
dc776d8
..
a19b354
100644
(file)
--- a/
filex/static/filex/filex.js
+++ b/
filex/static/filex/filex.js
@@
-357,6
+357,8
@@
$(function(){
this.reloadFiles();
this.updateFavorites();
this.reloadFiles();
this.updateFavorites();
+
+ localStorage.last_location = location;
},
reloadFiles: function() {
},
reloadFiles: function() {
@@
-488,11
+490,10
@@
$(function(){
},
initialLoad: function() {
},
initialLoad: function() {
- if (!this.host) {
- var opts = this.hostSelectize.options;
+ var opts = this.hostSelectize.options,
+ location = localStorage.last_location || opts[Object.keys(opts)[0]].value;
- this.router.navigate('#' + opts[Object.keys(opts)[0]].value, {trigger: true, replace: true});
- }
+ this.router.navigate('#' + location, {trigger: true, replace: true});
},
updateFavorites: function() {
},
updateFavorites: function() {