mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
no errors on chrome client
This commit is contained in:
parent
5ba3cab445
commit
a07d1722fc
2 changed files with 13 additions and 6 deletions
|
@ -247,9 +247,16 @@ exports.doImport = function(req, res, padId)
|
||||||
padManager.getPad(padId, function(err, _pad){
|
padManager.getPad(padId, function(err, _pad){
|
||||||
var pad = _pad;
|
var pad = _pad;
|
||||||
padManager.unloadPad(padId);
|
padManager.unloadPad(padId);
|
||||||
|
|
||||||
|
// direct Database Access means a pad user should perform a switchToPad
|
||||||
|
// and not attempt to recieve updated pad data..
|
||||||
|
if(!directDatabaseAccess){
|
||||||
padMessageHandler.updatePadClients(pad, function(){
|
padMessageHandler.updatePadClients(pad, function(){
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
callback();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -293,7 +300,7 @@ exports.doImport = function(req, res, padId)
|
||||||
if(navigator.userAgent.indexOf('MSIE') === -1){ \
|
if(navigator.userAgent.indexOf('MSIE') === -1){ \
|
||||||
document.domain = document.domain; \
|
document.domain = document.domain; \
|
||||||
} \
|
} \
|
||||||
var impexp = window.parent.padimpexp.handleFrameCall('" + status + "'); \
|
var impexp = window.parent.padimpexp.handleFrameCall('" + directDatabaseAccess +"', '" + status + "'); \
|
||||||
}) \
|
}) \
|
||||||
</script>"
|
</script>"
|
||||||
, 200);
|
, 200);
|
||||||
|
|
|
@ -237,13 +237,13 @@ var padimpexp = (function()
|
||||||
$('#importform').submit(fileInputSubmit);
|
$('#importform').submit(fileInputSubmit);
|
||||||
$('.disabledexport').click(cantExport);
|
$('.disabledexport').click(cantExport);
|
||||||
},
|
},
|
||||||
handleFrameCall: function(status)
|
handleFrameCall: function(directDatabaseAccess, status)
|
||||||
{
|
{
|
||||||
if (status !== "ok")
|
if (status !== "ok")
|
||||||
{
|
{
|
||||||
importFailed(status);
|
importFailed(status);
|
||||||
}
|
}
|
||||||
|
if(directDatabaseAccess) pad.switchToPad(clientVars.padId);
|
||||||
importDone();
|
importDone();
|
||||||
},
|
},
|
||||||
disable: function()
|
disable: function()
|
||||||
|
|
Loading…
Reference in a new issue