Commit 086a41b7 authored by techird's avatar techird

merge from dev

parents f83f57fe 5654ed36
...@@ -516,10 +516,14 @@ $( function () { ...@@ -516,10 +516,14 @@ $( function () {
function loadDraft( index ) { function loadDraft( index ) {
var draft = draftManager.open( index ), var draft = draftManager.open( index ),
isRemote;
if ( !draft ) return;
isRemote = draft.path.indexOf( '/apps/kityminder' ) === 0; isRemote = draft.path.indexOf( '/apps/kityminder' ) === 0;
if ( draft && isRemote ) { if ( isRemote ) {
setRemotePath( draft.path, false ); setRemotePath( draft.path, false );
} }
draftManager.load(); draftManager.load();
if ( !isRemote ) { if ( !isRemote ) {
setRemotePath( null, false ); setRemotePath( null, false );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment