fix bug regarding signed in users loading /signin and signed out users loading /signout

This commit is contained in:
rolux 2011-12-23 14:17:12 +00:00
parent ed6fdc732e
commit b7c0fde5e4
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>We will be back in a moment.</title> <title>We will be back in a moment</title>
<link rel="stylesheet" type="text/css" href="/static/oxjs/build/Ox.UI/css/Ox.UI.css"/> <link rel="stylesheet" type="text/css" href="/static/oxjs/build/Ox.UI/css/Ox.UI.css"/>
<style> <style>
body { body {

View file

@ -66,11 +66,11 @@ pandora.ui.appPanel = function() {
pandora.$ui.accountDialog = pandora.ui.accountDialog(page).open(); pandora.$ui.accountDialog = pandora.ui.accountDialog(page).open();
} }
} else { } else {
pandora.URL.replace('/'); pandora.UI.set({page: ''});
} }
} else if (['preferences', 'signout'].indexOf(page) > -1) { } else if (['preferences', 'signout'].indexOf(page) > -1) {
if (pandora.user.level == 'guest') { if (pandora.user.level == 'guest') {
pandora.URL.replace('/'); pandora.UI.set({page: ''});
} else if (page == 'preferences') { } else if (page == 'preferences') {
pandora.ui.preferencesDialog().open(); pandora.ui.preferencesDialog().open();
} else { } else {