@ -235,6 +235,19 @@ function showFileEditor(dir,filename){
}
}
functioncloseBtnClick(){
if($('#editor').attr('data-edited')=='true'){
// Show confirm
OC.dialogs.confirm(t('files_texteditor','You have unsaved changes that will be lost! Do you still want to close?'),t('files_texteditor','Really close?'),function(close){