Create new file in root if default dir doesn't exist. Ref #88

pull/1/head
Victor Dubiniuk 10 years ago
parent 72d97ac54b
commit e20b304a17

File diff suppressed because one or more lines are too long

@ -128,6 +128,13 @@ var documentsMain = {
$('#connection-lost,#warning-connection-lost').remove();
$('#odf-toolbar').children(':not(#document-title,#saving-document)').show();
$('#memberList .memberListButton').css({opacity : 1});
},
notify : function(message){
OC.Notification.show(message);
setTimeout(function() {
OC.Notification.hide();
}, 10000);
}
},
@ -296,6 +303,9 @@ var documentsMain = {
documentsMain.prepareSession();
documentsMain.joinSession(response.fileid);
} else {
if (response && response.message){
documentsMain.UI.notify(response.message);
}
documentsMain.show();
}
}
@ -335,10 +345,7 @@ var documentsMain = {
function(result) {
if (result && result.status === 'error') {
if (result.message){
OC.Notification.show(result.message);
setTimeout(function() {
OC.Notification.hide();
}, 10000);
documentsMain.UI.notify(result.message);
}
return;
}
@ -407,10 +414,7 @@ var documentsMain = {
function(result) {
if (result && result.status === 'error') {
if (result.message){
OC.Notification.show(result.message);
setTimeout(function() {
OC.Notification.hide();
}, 10000);
documentsMain.IU.notify(result.message);
}
return;
}

Loading…
Cancel
Save