@ -239,6 +239,7 @@ var CouchPotato = new Class({
} ,
} ,
createLayout : function ( ) {
createLayout : function ( ) {
var self = this ;
var self = this ;
self . hide_update = ! ! App . options && App . options . webui_feature && App . options . webui_feature . hide_menuitem_update ;
self . block . header = new BlockBase ( ) ;
self . block . header = new BlockBase ( ) ;
self . c . adopt ( $ ( self . block . header ) . addClass ( "header" ) . adopt ( self . block . navigation = new BlockHeader ( self , { } ) , self . block . search = new BlockSearch ( self , { } ) , self . support = new Element ( "a.donate.icon-donate" , {
self . c . adopt ( $ ( self . block . header ) . addClass ( "header" ) . adopt ( self . block . navigation = new BlockHeader ( self , { } ) , self . block . search = new BlockSearch ( self , { } ) , self . support = new Element ( "a.donate.icon-donate" , {
href : "https://couchpota.to/support/" ,
href : "https://couchpota.to/support/" ,
@ -252,11 +253,6 @@ var CouchPotato = new Class({
text : "About CouchPotato" ,
text : "About CouchPotato" ,
href : App . createUrl ( "settings/about" )
href : App . createUrl ( "settings/about" )
} ) , new Element ( "a" , {
} ) , new Element ( "a" , {
text : "Check for Updates" ,
events : {
click : self . checkForUpdate . bind ( self , null )
}
} ) , new Element ( "a" , {
text : "Settings" ,
text : "Settings" ,
href : App . createUrl ( "settings/general" )
href : App . createUrl ( "settings/general" )
} ) , new Element ( "a" , {
} ) , new Element ( "a" , {
@ -273,6 +269,14 @@ var CouchPotato = new Class({
click : self . shutdownQA . bind ( self )
click : self . shutdownQA . bind ( self )
}
}
} ) ] ;
} ) ] ;
if ( ! self . hide_update ) {
setting_links . splice ( 1 , 0 , new Element ( "a" , {
text : "Check for Updates" ,
events : {
click : self . checkForUpdate . bind ( self , null )
}
} ) ) ;
}
setting_links . each ( function ( a ) {
setting_links . each ( function ( a ) {
self . block . more . addLink ( a ) ;
self . block . more . addLink ( a ) ;
} ) ;
} ) ;
@ -2019,7 +2023,7 @@ var AboutSettingTab = new Class({
self . createAbout ( ) ;
self . createAbout ( ) ;
} ) ;
} ) ;
self . settings . default_action = "about" ;
self . settings . default_action = "about" ;
self . hide_dirs = ! ! App . options && App . options . hide_about_dirs ;
self . hide_dirs = ! ! App . options && App . options . webui_feature && App . options . webui_feature . hide_about_dirs ;
} ,
} ,
createAbout : function ( ) {
createAbout : function ( ) {
var self = this ;
var self = this ;