Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 1aaf55a

Browse files
committed
changes based on PR comments
1 parent 1263477 commit 1aaf55a

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

css/obBase.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,14 +1419,6 @@ h5 {
14191419
padding-top: 70px;
14201420
}
14211421
1422-
.modal-cover-fullscreen {
1423-
top: 0;
1424-
}
1425-
1426-
.modal-cover-fullscreen .modal-childMain {
1427-
top: 50px;
1428-
}
1429-
14301422
.modal-childMain {
14311423
border-radius: 3px;
14321424
background-color: #327eb8;

js/App.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
var ipcRenderer = require('ipc-renderer'),
2-
Polyglot = require('node-polyglot'),
32
__ = require('underscore'),
43
$ = require('jquery'),
54
Socket = require('./utils/Socket'),

js/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ app.serverConfigs.getActive().on('sync', (onActiveServerSync = function(md) {
118118

119119
app.serverConfigs.on('activeServerChange', (md) => {
120120
setServerUrl();
121-
app.serverConfigs.getActive().off(null, onActiveServerSync);
122121
app.serverConfigs.getActive().off('sync', onActiveServerSync);
123122
});
124123

@@ -212,6 +211,11 @@ $(window).bind('keydown', function(e) {
212211
char = String.fromCharCode(e.which).toLowerCase();
213212

214213
switch (char) {
214+
case config.keyShortcuts.undo:
215+
//run undo programmatically to avoid crash
216+
e.preventDefault();
217+
document.execCommand('undo');
218+
break;
215219
case config.keyShortcuts.discover:
216220
route = 'home';
217221
break;

js/views/serverConnectModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var __ = require('underscore'),
1212
ServerConfigsVw = require('./serverConfigsVw');
1313

1414
module.exports = BaseModal.extend({
15-
className: 'server-connect-modal modal-cover-fullscreen',
15+
className: 'server-connect-modal modal-navBlock',
1616

1717
events: {
1818
'click .js-close': 'closeConfigForm',

0 commit comments

Comments
 (0)