Merge pull request #3026 from storytouch/develop
Fix #2918. Re-enable editor after user is reconnected to server
This commit is contained in:
commit
81b11be54a
|
@ -769,6 +769,7 @@ var pad = {
|
|||
var wasConnecting = (padconnectionstatus.getStatus().what == 'connecting');
|
||||
if (newState == "CONNECTED")
|
||||
{
|
||||
padeditor.enable();
|
||||
padconnectionstatus.connected();
|
||||
}
|
||||
else if (newState == "RECONNECTING")
|
||||
|
|
|
@ -198,6 +198,13 @@ var padeditor = (function()
|
|||
self.ace = null;
|
||||
}
|
||||
},
|
||||
enable: function()
|
||||
{
|
||||
if (self.ace)
|
||||
{
|
||||
self.ace.setEditable(true);
|
||||
}
|
||||
},
|
||||
disable: function()
|
||||
{
|
||||
if (self.ace)
|
||||
|
|
Loading…
Reference in New Issue