This repository was archived by the owner on May 16, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ <h2 class="ion-android-close custCol-text clickable"></h2>
4040 </ div >
4141 </ div >
4242 </ div >
43+ <!--
4344 <div class="modal modal-opaque hide js-loadingMessageModal">
4445 <div class="modal-child modal-childMain">
4546 <div class="btn-corner btn-cornerTR js-closeIndexModal">
@@ -71,15 +72,17 @@ <h2 class="txt-center">
7172 </div>
7273 </div>
7374 </div>
75+ -->
7476 < div id ="statusBar "> </ div >
7577 < div id ="pageNav " class ="bar navBar navBar-main custCol-secondary padding0 "> </ div >
7678 <!-- the loading modal must be on top of the page nav or the reload button is hidden -->
7779 < div id ="loadingModal " class ="modal modal-opaque js-loadingModal top0 ">
7880 < div class ="spinner-with-logo fullCentered ">
7981 < i class ="ion-android-sync spinner fontSize30 spinner-with-logo-icon "> </ i >
8082 </ div >
81- < div class ="rowTop20 ">
82- < a class ="btn btn-txt btn-corner btn-cornerTR js-indexReload "> < i class ="ion-android-sync "> </ i > Reload</ a >
83+ < div class ="width100 positionTop ">
84+ < a class ="btn btn-txt rowTop10 marginRight10 pull-right js-indexReload "> < i class ="ion-android-sync "> </ i > Reload</ a >
85+ < a class ="btn btn-txt rowTop10 marginRight10 pull-right " href ="#home "> < i class ="ion-home "> </ i > Load Index</ a >
8386 </ div >
8487 </ div >
8588
Original file line number Diff line number Diff line change @@ -276,6 +276,8 @@ var profileLoaded;
276276var loadProfile = function ( landingRoute , onboarded ) {
277277 var externalRoute = remote . getGlobal ( 'externalRoute' ) ;
278278
279+ landingRoute = landingRoute && landingRoute != undefined ? landingRoute : '#' ;
280+
279281 profileLoaded = true ;
280282
281283 //get the guid from the user profile to put in the user model
@@ -317,7 +319,7 @@ var loadProfile = function(landingRoute, onboarded) {
317319 Backbone . history . start ( ) ;
318320 } ) ;
319321 } else {
320- location . hash = landingRoute || '#' ;
322+ location . hash = landingRoute ;
321323 Backbone . history . start ( ) ;
322324 }
323325 } ) ;
Original file line number Diff line number Diff line change @@ -57,13 +57,13 @@ module.exports = Backbone.Router.extend({
5757 itemHash = "" ,
5858 routeArray = route . replace ( "ob://" , "" ) . replace ( / / g, "" ) . split ( "/" ) ,
5959 deferred = $ . Deferred ( ) ;
60-
60+
6161 state = routeArray [ 1 ] ? "/" + routeArray [ 1 ] : "" ;
6262 itemHash = routeArray [ 2 ] ? "/" + routeArray [ 2 ] : "" ;
6363
6464 if ( routeArray [ 0 ] . charAt ( 0 ) == "@" ) {
6565 // user entered a handle
66- deferred . resolve ( route ) ;
66+ deferred . resolve ( routeArray [ 0 ] + state + itemHash ) ;
6767 } else if ( ! routeArray [ 0 ] . length ) {
6868 // user trying to go back to discover
6969 deferred . resolve ( '#home' ) ;
You can’t perform that action at this time.
0 commit comments