@@ -12,7 +12,6 @@ var __ = require('underscore'),
1212 //adminPanelView = require('../views/adminPanelVw'),
1313 NotificationsVw = require ( '../views/notificationsVw' ) ,
1414 PageNavServersVw = require ( '../views/pageNavServersVw' ) ,
15- remote = require ( 'remote' ) ,
1615 pjson = require ( '../../package.json' ) ;
1716
1817var ipcRenderer = require ( 'ipc-renderer' ) ; // Allows to talk Electon main process
@@ -22,9 +21,6 @@ module.exports = baseVw.extend({
2221 el : '#pageNav' ,
2322
2423 events : {
25- 'click .js-navClose' : 'navCloseClick' ,
26- 'click .js-navMin' : 'navMinClick' ,
27- 'click .js-navMax' : 'navMaxClick' ,
2824 'click .js-navBack' : 'navBackClick' ,
2925 'click .js-navFwd' : 'navFwdClick' ,
3026 'click .js-showAboutModal' : 'showAboutModal' ,
@@ -64,8 +60,6 @@ module.exports = baseVw.extend({
6460 this . showDiscIntro = options . showDiscIntro ;
6561 this . notificationsRecord = { } ; //store notification timestamps to prevent too many from the same user
6662
67- this . currentWindow = remote . getCurrentWindow ( ) ;
68-
6963 this . listenTo ( window . obEventBus , "updateProfile" , function ( response ) {
7064 this . refreshProfile ( ) ;
7165 } ) ;
@@ -511,29 +505,6 @@ module.exports = baseVw.extend({
511505 this . serverSubmenu . removeClass ( 'server-submenu-opened' ) ;
512506 } ,
513507
514- navCloseClick : function ( ) {
515- var process = remote . process ;
516- if ( process . platform != 'darwin' ) {
517- this . currentWindow . close ( ) ;
518- } else {
519- this . currentWindow . hide ( ) ;
520- }
521- } ,
522-
523- navMinClick : function ( ) {
524- this . currentWindow . minimize ( ) ;
525- } ,
526-
527- navMaxClick : function ( ) {
528- if ( this . currentWindow . isMaximized ( ) ) {
529- this . currentWindow . unmaximize ( ) ;
530- $ ( '.js-navMax' ) . attr ( 'data-tooltip' , window . polyglot . t ( 'Maximize' ) ) ;
531- } else {
532- this . currentWindow . maximize ( ) ;
533- $ ( '.js-navMax' ) . attr ( 'data-tooltip' , window . polyglot . t ( 'Restore' ) ) ;
534- }
535- } ,
536-
537508 navBackClick : function ( ) {
538509 history . back ( ) ;
539510 } ,
0 commit comments