summaryrefslogtreecommitdiff
path: root/www/js/apps.js
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2015-08-02 22:29:08 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2015-08-02 22:29:08 (GMT)
commit8e34dfc158906ad1ddf5810b8d0a88be6b7ffb1f (patch)
tree488c3d54f54f8fee6de97a3bb67f29c7f4ac60ed /www/js/apps.js
parent5a3b14483b992969f7f9f1d5fe59b008b20db2c9 (diff)
switch to hashless urls
Diffstat (limited to 'www/js/apps.js')
-rw-r--r--www/js/apps.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/js/apps.js b/www/js/apps.js
index dcabe98..249947a 100644
--- a/www/js/apps.js
+++ b/www/js/apps.js
@@ -59,13 +59,13 @@ function apps_select(app) {
apps_current = app = 'shows';
shows_init();
}
- if (locationHashValue() !== app) {
- history.pushState(null, null, '/#' + app + '/');
+ if (locationHrefValue() !== app) {
+ history.pushState(null, null, '/' + app + '/');
}
}
function apps_init() {
- apps_current = locationHashValue();
+ apps_current = locationHrefValue();
if(auth_token && auth_username) {
apps_select(apps_current);
@@ -73,7 +73,7 @@ function apps_init() {
$(window).on('popstate', function(event) {
if(auth_token && auth_username) {
- apps_select(locationHashValue());
+ apps_select(locationHrefValue());
}
});
}