@@ -359,8 +359,6 @@ UserPageVw = pageVw.extend({
359359 } else {
360360 config . connectText = window . polyglot . t ( 'pageConnectingMessages.userConnect' ) . replace ( '${guid}' , this . pageID ) ;
361361 config . failedText = window . polyglot . t ( 'pageConnectingMessages.userFail' ) ;
362- // config.connectTooltip = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed posuere, lectus quis euismod vestibulum, sapien justo laoreet ante, sit amet mollis nibh diam cursus massa. Duis a eros dapibus, ultrices tortor nec, sodales magna.';
363- // config.failedTooltip = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed posuere, lectus quis euismod vestibulum, sapien justo laoreet ante, sit amet mollis nibh diam cursus massa. Duis a eros dapibus, ultrices tortor nec, sodales magna.';
364362 }
365363
366364 return config ;
@@ -385,13 +383,6 @@ UserPageVw = pageVw.extend({
385383 self . fetchFollowing ( ) ;
386384 self . getIsModerator ( ) ;
387385 self . fetchListings ( ) ;
388- /*
389- //save state of the page
390- self.undoCustomAttributes.background_color = self.model.get('page').profile.background_color;
391- self.undoCustomAttributes.primary_color = self.model.get('page').profile.primary_color;
392- self.undoCustomAttributes.secondary_color = self.model.get('page').profile.secondary_color;
393- self.undoCustomAttributes.text_color = self.model.get('page').profile.text_color;
394- */
395386 self . setCustomStyles ( ) ;
396387 self . setState ( self . state , self . currentItemHash , { replaceHistory : true } ) ;
397388 self . $backToTop = self . $ ( '.backToTop' ) ;
@@ -417,9 +408,11 @@ UserPageVw = pageVw.extend({
417408 smallImage : "stretch" ,
418409 maxZoom : 5 ,
419410 $preview : self . $ ( '.headerCropperPreview' ) ,
420- onFileReaderError : function ( data ) { console . log ( data ) ; } ,
411+ onFileReaderError : function ( data ) {
412+ console . log ( data ) ;
413+ } ,
421414 onFileChange : function ( ) {
422- if ( self . headerCropper . cropit ( 'isZoomable' ) ) {
415+ if ( self . headerCropper . cropit ( 'isZoomable' ) ) {
423416 $ ( '.js-bannerRangeInput' ) . removeClass ( 'hide' ) ;
424417 }
425418 } ,
@@ -503,10 +496,10 @@ UserPageVw = pageVw.extend({
503496 this . tabClick ( this . $el . find ( '.js-storeTab' ) , this . $el . find ( '.js-item' ) ) ;
504497 this . renderItem ( hash ) ;
505498 this . $obContainer . scrollTop ( 352 ) ;
506- } else if ( state === "listingOld" ) {
499+ } else if ( state === "listingOld" ) {
507500 this . tabClick ( this . $el . find ( ".js-storeTab" ) , this . $el . find ( ".js-item" ) ) ;
508501 this . $obContainer . scrollTop ( 352 ) ;
509- } else if ( state === "listingNew" ) {
502+ } else if ( state === "listingNew" ) {
510503 this . tabClick ( this . $el . find ( ".js-storeTab" ) , this . $el . find ( ".js-store" ) ) ;
511504 this . $obContainer . scrollTop ( 352 ) ;
512505 this . addTabToHistory ( 'listingNew' , options . replaceHistory ) ;
@@ -671,7 +664,6 @@ UserPageVw = pageVw.extend({
671664 var self = this ;
672665 this . listings . fetch ( {
673666 data : self . userProfileFetchParameters ,
674- //timeout: 5000,
675667 success : function ( model ) {
676668 if ( self . isRemoved ( ) ) return ;
677669 self . cachedListings = model . get ( 'listings' ) ; //cache for rerendering
@@ -824,7 +816,7 @@ UserPageVw = pageVw.extend({
824816 if ( followerArray . length || this . followerFetchTotal == 0 ) {
825817 //always render the first time so the no followers message is shown for no followers
826818 this . renderFollowers ( followerArray , this . followerFetchTotal ) ;
827- this . setFollowersPlaceholder ( this . followerFetchTotal , this . followerFetchStart )
819+ this . setFollowersPlaceholder ( this . followerFetchTotal , this . followerFetchStart ) ;
828820 }
829821 } ,
830822 error : function ( ) {
@@ -947,7 +939,6 @@ UserPageVw = pageVw.extend({
947939 hideFollow : true ,
948940 serverUrl : this . options . userModel . get ( 'serverUrl' ) ,
949941 reverse : true ,
950- perFetch : 30 ,
951942 followerCount : followerCount
952943 } ) ;
953944 this . registerChild ( this . followerList ) ;
@@ -1692,21 +1683,25 @@ UserPageVw = pageVw.extend({
16921683 } ,
16931684
16941685 moreButtonsOwnPageClick : function ( ) {
1695- if ( $ ( '.js-extraButtonsOwnPage' ) . hasClass ( 'hide' ) ) {
1696- $ ( '.js-extraButtonsOwnPage' ) . removeClass ( 'hide' ) ;
1697- $ ( '.js-moreButtonsOwnPage' ) . html ( 'x' ) ;
1686+ var extBtn = $ ( '.js-extraButtonsOwnPage' ) ,
1687+ moreExtBtn = $ ( '.js-moreButtonsOwnPage' ) ;
1688+ if ( extBtn . hasClass ( 'hide' ) ) {
1689+ extBtn . removeClass ( 'hide' ) ;
1690+ moreExtBtn . html ( 'x' ) ;
16981691 } else {
1699- $ ( '.js-extraButtonsOwnPage' ) . addClass ( 'hide' ) ;
1700- $ ( '.js-moreButtonsOwnPage' ) . html ( '...' ) ;
1692+ extBtn . addClass ( 'hide' ) ;
1693+ moreExtBtn . html ( '...' ) ;
17011694 }
17021695 } ,
17031696 moreButtonsNotOwnPageClick : function ( ) {
1704- if ( $ ( '.js-extraButtonsNotOwnPage' ) . hasClass ( 'hide' ) ) {
1705- $ ( '.js-extraButtonsNotOwnPage' ) . removeClass ( 'hide' ) ;
1706- $ ( '.js-moreButtonsNotOwnPage' ) . html ( 'x' ) ;
1697+ var extBtn = $ ( '.js-extraButtonsNotOwnPage' ) ,
1698+ moreExtBtn = $ ( '.js-moreButtonsNotOwnPage' ) ;
1699+ if ( extBtn . hasClass ( 'hide' ) ) {
1700+ extBtn . removeClass ( 'hide' ) ;
1701+ moreExtBtn . html ( 'x' ) ;
17071702 } else {
1708- $ ( '.js-extraButtonsNotOwnPage' ) . addClass ( 'hide' ) ;
1709- $ ( '.js-moreButtonsNotOwnPage' ) . html ( '...' ) ;
1703+ extBtn . addClass ( 'hide' ) ;
1704+ moreExtBtn . html ( '...' ) ;
17101705 }
17111706 } ,
17121707
0 commit comments